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().
ContextManagerProvider#getContextManager(), ContextManager.Builder
| Modifier and Type | Class and Description |
|---|---|
| public static interface | ContextManager.
Use this class to configure instances of |
| Modifier and Type | Method and Description |
|---|---|
| public ManagedExecutor. | Returns: a newManagedExecutor. instance.Creates a new |
| public ThreadContext. | Returns: a newThreadContext. instance.Creates a new |
| newManagedExecutorBuilder | back to summary |
|---|---|
| public ManagedExecutor. Creates a new
| |
| newThreadContextBuilder | back to summary |
|---|---|
| public ThreadContext. Creates a new
| |
ContextManager.
| Modifier and Type | Method and Description |
|---|---|
| public ContextManager. | Returns: this builderLoad all discoverable |
| public ContextManager. | Returns: this builderLoad all discoverable |
| public ContextManager | Returns: a newContextManager with the specified configuration.Creates a new |
| public ContextManager. | Returns: this builderthe classLoader)ClassLoader to use for addDiscoveredThreadContextProviders()Use the given |
| public ContextManager. | Returns: this builderthe extensions)ContextManagerExtension instances to use.Use the specified |
| public ContextManager. | Returns: this builderthe executorService)ExecutorService to use for async tasks when
no executor is specified.Use the given |
| public ContextManager. | Returns: this builderthe providers)ThreadContextProvider instances to use.Use the specified |
| addDiscoveredContextManagerExtensions | back to summary |
|---|---|
| public ContextManager. Load all discoverable
| |
| addDiscoveredThreadContextProviders | back to summary |
|---|---|
| public ContextManager. Load all discoverable
| |
| build | back to summary |
|---|---|
| public ContextManager build() Creates a new Creating a
| |
| forClassLoader | back to summary |
|---|---|
| public ContextManager. Use the given
| |
| withContextManagerExtensions | back to summary |
|---|---|
| public ContextManager. Use the specified
| |
| withDefaultExecutorService | back to summary |
|---|---|
| public ContextManager. Use the given
| |
| withThreadContextProviders | back to summary |
|---|---|
| public ContextManager. Use the specified
| |