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 default ContextMissingStrategy used in new instances of AWSXRayRecorder.
    static java.lang.String CONTEXT_MISSING_STRATEGY_SYSTEM_PROPERTY_OVERRIDE_KEY
    System property key used to override the default ContextMissingStrategy used in new instances of AWSXRayRecorder.
  • Method Summary

    Modifier and Type Method Description
    void contextMissing​(java.lang.String message, java.lang.Class<? extends java.lang.RuntimeException> exceptionClass)  
  • Field Details

    • 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 default ContextMissingStrategy used in new instances of AWSXRayRecorder. Valid values for this environment variable are (case-insensitive) RUNTIME_ERROR, LOG_ERROR and IGNORE_ERROR. Invalid values will be ignored. Takes precedence over any system property or builder value used for the DefaultContextMissingStrategy.
      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 default ContextMissingStrategy used in new instances of AWSXRayRecorder. Valid values for this system property are (case-insensitive) RUNTIME_ERROR, LOG_ERROR and IGNORE_ERROR. Invalid values will be ignored. Takes precedence over any builder value used for the DefaultContextMissingStrategy.
      See Also:
      Constant Field Values
  • Method Details

    • contextMissing

      void contextMissing​(java.lang.String message, java.lang.Class<? extends java.lang.RuntimeException> exceptionClass)