Package com.amazonaws.xray.strategy
Interface ContextMissingStrategy
-
- All Known Implementing Classes:
DefaultContextMissingStrategy
,IgnoreErrorContextMissingStrategy
,LogErrorContextMissingStrategy
,RuntimeErrorContextMissingStrategy
public interface ContextMissingStrategy
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CONTEXT_MISSING_STRATEGY_ENVIRONMENT_VARIABLE_OVERRIDE_KEY
Environment variable key used to override the defaultContextMissingStrategy
used in new instances ofAWSXRayRecorder
.static java.lang.String
CONTEXT_MISSING_STRATEGY_SYSTEM_PROPERTY_OVERRIDE_KEY
System property key used to override the defaultContextMissingStrategy
used in new instances ofAWSXRayRecorder
.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
contextMissing(java.lang.String message, java.lang.Class<? extends java.lang.RuntimeException> exceptionClass)
-
-
-
Field Detail
-
CONTEXT_MISSING_STRATEGY_ENVIRONMENT_VARIABLE_OVERRIDE_KEY
static final java.lang.String CONTEXT_MISSING_STRATEGY_ENVIRONMENT_VARIABLE_OVERRIDE_KEY
Environment variable key used to override the defaultContextMissingStrategy
used in new instances ofAWSXRayRecorder
. Valid values for this environment variable are (case-insensitive)RUNTIME_ERROR
,LOG_ERROR
andIGNORE_ERROR
. Invalid values will be ignored. Takes precedence over any system property or builder value used for theDefaultContextMissingStrategy
.- See Also:
- Constant Field Values
-
CONTEXT_MISSING_STRATEGY_SYSTEM_PROPERTY_OVERRIDE_KEY
static final java.lang.String CONTEXT_MISSING_STRATEGY_SYSTEM_PROPERTY_OVERRIDE_KEY
System property key used to override the defaultContextMissingStrategy
used in new instances ofAWSXRayRecorder
. Valid values for this system property are (case-insensitive)RUNTIME_ERROR
,LOG_ERROR
andIGNORE_ERROR
. Invalid values will be ignored. Takes precedence over any builder value used for theDefaultContextMissingStrategy
.- See Also:
- Constant Field Values
-
-