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
Modifier and TypeInterfaceDescriptionstatic interface
Use this class to configure instances ofContextManager
. -
Method Summary
Modifier and TypeMethodDescriptionCreates a newManagedExecutor.Builder
instance.Creates a newThreadContext.Builder
instance.
-
Method Details
-
newManagedExecutorBuilder
ManagedExecutor.Builder newManagedExecutorBuilder()Creates a newManagedExecutor.Builder
instance.- Returns:
- a new
ManagedExecutor.Builder
instance.
-
newThreadContextBuilder
ThreadContext.Builder newThreadContextBuilder()Creates a newThreadContext.Builder
instance.- Returns:
- a new
ThreadContext.Builder
instance.
-