Interface ContextManager
- All Known Implementing Classes:
ContextManagerImpl
@Contract
public interface ContextManager
The ContextManager provides access to diagnostics Contexts.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionGet the Context associated with the currently executing task, creating a new Context if required.
-
Field Details
-
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:
-
LOG_MESSAGE_RESOURCE
- See Also:
-
LOGGER_NAME
- See Also:
-
LOGGER
-
-
Method Details
-
getContext
Context getContext()Get the Context associated with the currently executing task, creating a new Context if required.
-