ContextManagerExtension
instances via the ServiceLoader
mechanism on the current thread-context ClassLoader
(unless overridden by forClassLoader(ClassLoader)
).ThreadContextProvider
instances via the ServiceLoader
mechanism on the current thread-context ClassLoader
(unless overridden by forClassLoader(ClassLoader)
).cleared
,
propagated
, or unchanged
.ThreadContextController
instance.ManagedExecutor
with the configuration
that this builder represents as of the point in time when this method
is invoked.ContextManager
with the specified configuration.ThreadContext
instance with the
configuration that this builder represents as of the point in time when
this method is invoked.ManagedExecutor.Builder
instance.ThreadContext.Builder
instance.ContextManager
instances can be used to create ContextManager.newManagedExecutorBuilder()
or ContextManager.newThreadContextBuilder()
.ContextManager
.ContextManagerExtension
instances receive
notification upon creation of each ContextManager
.ContextManager
per class loader,
which in turn create new instances of
ManagedExecutor.Builder
and
ThreadContext.Builder
.ContextManagerProvider
exclusive control over unregistering it.Callable
with context that is captured from the thread that invokes
contextualCallable
.BiConsumer
with context that is captured from the thread that invokes
contextualConsumer
.Consumer
with context that is captured from the thread that invokes
contextualConsumer
.BiFunction
with context that is captured from the thread that invokes
contextualFunction
.Function
with context that is captured from the thread that invokes
contextualFunction
.Runnable
with context that is captured from the thread that invokes
ContextualRunnable
.Supplier
with context captured from the thread that invokes
contextualSupplier
.Executor
that runs tasks on the same thread from which
execute
is invoked but with context that is captured from the thread
that invokes currentContextExecutor
.ManagedExecutor
or
ThreadContext
to remove the thread context managed by
this ThreadContextController
instance and restore the previous
context that was on the thread before the ThreadContextController
applied the context to the thread.ClassLoader
for addDiscoveredThreadContextProviders()
instead
of the current thread-context ClassLoader
.ContextManager
for the current thread-context ClassLoader
.ContextManager
for the given ClassLoader
.ContextManager.Builder
to create new ContextManager
instances.ThreadContextProvider
implementation.ContextManagerProvider
instance that has been previously registered, or
uses ServiceLoader
to load and register a ContextManagerProvider
from the
current context class loader.ManagedExecutor
instances.CompletableFuture
.ManagedExecutor.Builder
instance.ThreadContext.Builder
instance.ContextManagerProvider
implementation.ContextManager
for the given ClassLoader
, so that
further calls to ContextManagerProvider.getContextManager(ClassLoader)
for the same ClassLoader
will return this instance instead of creating a new one.ContextManager
that was previously registered with
ContextManagerProvider.registerContextManager(ContextManager, ClassLoader)
.ContextManager
instance has been successfully created.ThreadContext
instances.ManagedExecutor
and ThreadContext
are used to create and contextualize dependent
actions and tasks.ContextManagerProvider
that is represented by
this ContextManagerProviderRegistration
instance.CompletableFuture
that is completed by the completion of the
specified stage.CompletionStage
that is completed by the completion of the
specified stage.ContextManagerExtension
instances.ThreadContextProvider
instances.Copyright © 2019 Eclipse Foundation. All rights reserved.