Interface ContextManager

  • All Known Implementing Classes:
    ContextManagerImpl

    @Contract
    public interface ContextManager
    The ContextManager provides access to diagnostics Contexts.
    • Field Detail

      • WORK_CONTEXT_KEY

        static final String WORK_CONTEXT_KEY
        The key under which instances of Context will be created and found in the ContextMap. This key will be used by the ContextMap implementation to label the data belonging to this Context when that data is being propagated. Remote systems attempting to use that data (e.g. to construct a propagated Context) will use the value of this key to find the propagated data. Therefore the value of this key should not be changed...ever!
        See Also:
        Constant Field Values
      • LOGGER

        static final Logger LOGGER
    • Method Detail

      • getContext

        Context getContext()
        Get the Context associated with the currently executing task, creating a new Context if required.