Interface ContextManager
-
- All Known Implementing Classes:
ContextManagerImpl
@Contract public interface ContextManager
The ContextManager provides access to diagnostics Contexts.
-
-
Field Summary
Fields Modifier and Type Field Description static String
LOG_MESSAGE_RESOURCE
static Logger
LOGGER
static String
LOGGER_NAME
static String
WORK_CONTEXT_KEY
The key under which instances of Context will be created and found in the ContextMap.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Context
getContext()
Get the Context associated with the currently executing task, creating a new Context if required.
-
-
-
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
-
LOG_MESSAGE_RESOURCE
static final String LOG_MESSAGE_RESOURCE
- See Also:
- Constant Field Values
-
LOGGER_NAME
static final String LOGGER_NAME
- 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.
-
-