Interface ContextManager
public interface ContextManager
ContextManager instances can be used to create newManagedExecutorBuilder()
or newThreadContextBuilder(). Each ContextManager instance has its own set
of ThreadContextProvider as defined during building with ContextManager.Builder.build()
or ContextManagerProvider.getContextManager().-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceUse this class to configure instances ofContextManager. -
Method Summary
Modifier and TypeMethodDescriptionCreates a newManagedExecutor.Builderinstance.Creates a newThreadContext.Builderinstance.
-
Method Details
-
newManagedExecutorBuilder
ManagedExecutor.Builder newManagedExecutorBuilder()Creates a newManagedExecutor.Builderinstance.- Returns:
- a new
ManagedExecutor.Builderinstance.
-
newThreadContextBuilder
ThreadContext.Builder newThreadContextBuilder()Creates a newThreadContext.Builderinstance.- Returns:
- a new
ThreadContext.Builderinstance.
-