Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- addDiscoveredContextManagerExtensions() - Method in interface org.eclipse.microprofile.context.spi.ContextManager.Builder
-
Load all discoverable
ContextManagerExtensioninstances via theServiceLoadermechanism on the current thread-contextClassLoader(unless overridden byContextManager.Builder.forClassLoader(ClassLoader)). - addDiscoveredThreadContextProviders() - Method in interface org.eclipse.microprofile.context.spi.ContextManager.Builder
-
Load all discoverable
ThreadContextProviderinstances via theServiceLoadermechanism on the current thread-contextClassLoader(unless overridden byContextManager.Builder.forClassLoader(ClassLoader)). - ALL_REMAINING - Static variable in interface org.eclipse.microprofile.context.ThreadContext
-
Identifier for all available thread context types which are not specified individually under
cleared,propagated, orunchanged. - APPLICATION - Static variable in interface org.eclipse.microprofile.context.ThreadContext
-
Identifier for application context.
B
- begin() - Method in interface org.eclipse.microprofile.context.spi.ThreadContextSnapshot
-
Applies the captured thread context snapshot to the current thread and returns a distinct
ThreadContextControllerinstance. - build() - Method in interface org.eclipse.microprofile.context.ManagedExecutor.Builder
-
Builds a new
ManagedExecutorwith the configuration that this builder represents as of the point in time when this method is invoked. - build() - Method in interface org.eclipse.microprofile.context.spi.ContextManager.Builder
-
Creates a new
ContextManagerwith the specified configuration. - build() - Method in interface org.eclipse.microprofile.context.ThreadContext.Builder
-
Builds a new
ThreadContextinstance with the configuration that this builder represents as of the point in time when this method is invoked. - builder() - Static method in interface org.eclipse.microprofile.context.ManagedExecutor
-
Creates a new
ManagedExecutor.Builderinstance. - builder() - Static method in interface org.eclipse.microprofile.context.ThreadContext
-
Creates a new
ThreadContext.Builderinstance.
C
- CDI - Static variable in interface org.eclipse.microprofile.context.ThreadContext
-
Identifier for CDI context.
- cleared(String...) - Method in interface org.eclipse.microprofile.context.ManagedExecutor.Builder
-
Defines the set of thread context types to clear from the thread where the action or task executes.
- cleared(String...) - Method in interface org.eclipse.microprofile.context.ThreadContext.Builder
-
Defines the set of thread context types to clear from the thread where the action or task executes.
- clearedContext(Map<String, String>) - Method in interface org.eclipse.microprofile.context.spi.ThreadContextProvider
-
Returns empty/cleared context of the provided type.
- completedFuture(U) - Method in interface org.eclipse.microprofile.context.ManagedExecutor
-
Returns a new CompletableFuture that is already completed with the specified value.
- completedStage(U) - Method in interface org.eclipse.microprofile.context.ManagedExecutor
-
Returns a new CompletionStage that is already completed with the specified value.
- ContextManager - Interface in org.eclipse.microprofile.context.spi
-
ContextManagerinstances can be used to createContextManager.newManagedExecutorBuilder()orContextManager.newThreadContextBuilder(). - ContextManager.Builder - Interface in org.eclipse.microprofile.context.spi
-
Use this class to configure instances of
ContextManager. - ContextManagerExtension - Interface in org.eclipse.microprofile.context.spi
-
ContextManagerExtensioninstances receive notification upon creation of eachContextManager. - ContextManagerProvider - Interface in org.eclipse.microprofile.context.spi
-
A provider implementation supplied by the container, which creates and caches instances of
ContextManagerper class loader, which in turn create new instances ofManagedExecutor.BuilderandThreadContext.Builder. - ContextManagerProviderRegistration - Class in org.eclipse.microprofile.context.spi
-
This class gives the container that registered a
ContextManagerProviderexclusive control over unregistering it. - contextualCallable(Callable<R>) - Method in interface org.eclipse.microprofile.context.ThreadContext
-
Wraps a
Callablewith context that is captured from the thread that invokescontextualCallable. - contextualConsumer(BiConsumer<T, U>) - Method in interface org.eclipse.microprofile.context.ThreadContext
-
Wraps a
BiConsumerwith context that is captured from the thread that invokescontextualConsumer. - contextualConsumer(Consumer<T>) - Method in interface org.eclipse.microprofile.context.ThreadContext
-
Wraps a
Consumerwith context that is captured from the thread that invokescontextualConsumer. - contextualFunction(BiFunction<T, U, R>) - Method in interface org.eclipse.microprofile.context.ThreadContext
-
Wraps a
BiFunctionwith context that is captured from the thread that invokescontextualFunction. - contextualFunction(Function<T, R>) - Method in interface org.eclipse.microprofile.context.ThreadContext
-
Wraps a
Functionwith context that is captured from the thread that invokescontextualFunction. - contextualRunnable(Runnable) - Method in interface org.eclipse.microprofile.context.ThreadContext
-
Wraps a
Runnablewith context that is captured from the thread that invokesContextualRunnable. - contextualSupplier(Supplier<R>) - Method in interface org.eclipse.microprofile.context.ThreadContext
-
Wraps a
Supplierwith context captured from the thread that invokescontextualSupplier. - copy(CompletableFuture<T>) - Method in interface org.eclipse.microprofile.context.ManagedExecutor
-
Returns a new
CompletableFuturethat is completed by the completion of the specified stage. - copy(CompletionStage<T>) - Method in interface org.eclipse.microprofile.context.ManagedExecutor
-
Returns a new
CompletionStagethat is completed by the completion of the specified stage. - currentContext(Map<String, String>) - Method in interface org.eclipse.microprofile.context.spi.ThreadContextProvider
-
Captures from the current thread a snapshot of the provided thread context type.
- currentContextExecutor() - Method in interface org.eclipse.microprofile.context.ThreadContext
-
Creates an
Executorthat runs tasks on the same thread from whichexecuteis invoked but with context that is captured from the thread that invokescurrentContextExecutor.
E
- endContext() - Method in interface org.eclipse.microprofile.context.spi.ThreadContextController
-
Invoked by the
ManagedExecutororThreadContextto remove the thread context managed by thisThreadContextControllerinstance and restore the previous context that was on the thread before theThreadContextControllerapplied the context to the thread.
F
- failedFuture(Throwable) - Method in interface org.eclipse.microprofile.context.ManagedExecutor
-
Returns a new CompletableFuture that is already exceptionally completed with the specified Throwable.
- failedStage(Throwable) - Method in interface org.eclipse.microprofile.context.ManagedExecutor
-
Returns a new CompletionStage that is already exceptionally completed with the specified Throwable.
- forClassLoader(ClassLoader) - Method in interface org.eclipse.microprofile.context.spi.ContextManager.Builder
-
Use the given
ClassLoaderforContextManager.Builder.addDiscoveredThreadContextProviders()instead of the current thread-contextClassLoader.
G
- getContextManager() - Method in interface org.eclipse.microprofile.context.spi.ContextManagerProvider
-
Gets a
ContextManagerfor the current thread-contextClassLoader. - getContextManager(ClassLoader) - Method in interface org.eclipse.microprofile.context.spi.ContextManagerProvider
-
Gets a
ContextManagerfor the givenClassLoader. - getContextManagerBuilder() - Method in interface org.eclipse.microprofile.context.spi.ContextManagerProvider
-
Returns a new
ContextManager.Builderto create newContextManagerinstances. - getThreadContext() - Method in interface org.eclipse.microprofile.context.ManagedExecutor
-
Returns a
ThreadContextwhich has the same propagation settings as thisManagedExecutor, which uses thisManagedExecutoras its default executor. - getThreadContextType() - Method in interface org.eclipse.microprofile.context.spi.ThreadContextProvider
-
Returns a human readable identifier for the type of thread context that is captured by this
ThreadContextProviderimplementation.
I
- instance() - Static method in interface org.eclipse.microprofile.context.spi.ContextManagerProvider
-
Obtains the
ContextManagerProviderinstance that has been previously registered, or usesServiceLoaderto load and register aContextManagerProviderfrom the current context class loader. - INSTANCE - Static variable in interface org.eclipse.microprofile.context.spi.ContextManagerProvider
M
- ManagedExecutor - Interface in org.eclipse.microprofile.context
-
A container-managed executor service that creates instances of CompletableFuture, which it backs as the default asynchronous execution facility, both for the CompletableFuture itself as well as all dependent stages created from it, as well as all dependent stages created from those, and so on.
- ManagedExecutor.Builder - Interface in org.eclipse.microprofile.context
-
Builder for
ManagedExecutorinstances. - maxAsync(int) - Method in interface org.eclipse.microprofile.context.ManagedExecutor.Builder
-
Establishes an upper bound on the number of async completion stage actions and async executor tasks that can be running at any given point in time.
- maxQueued(int) - Method in interface org.eclipse.microprofile.context.ManagedExecutor.Builder
-
Establishes an upper bound on the number of async actions and async tasks that can be queued up for execution.
N
- newIncompleteFuture() - Method in interface org.eclipse.microprofile.context.ManagedExecutor
-
Returns a new incomplete
CompletableFuture. - newManagedExecutorBuilder() - Method in interface org.eclipse.microprofile.context.spi.ContextManager
-
Creates a new
ManagedExecutor.Builderinstance. - newThreadContextBuilder() - Method in interface org.eclipse.microprofile.context.spi.ContextManager
-
Creates a new
ThreadContext.Builderinstance. - NONE - Static variable in interface org.eclipse.microprofile.context.ThreadContext
-
An empty array of thread context.
O
- org.eclipse.microprofile.context - package org.eclipse.microprofile.context
- org.eclipse.microprofile.context.spi - package org.eclipse.microprofile.context.spi
P
- propagated(String...) - Method in interface org.eclipse.microprofile.context.ManagedExecutor.Builder
-
Defines the set of thread context types to capture from the thread that creates a dependent stage (or that submits a task) and which to propagate to the thread where the action or task executes.
- propagated(String...) - Method in interface org.eclipse.microprofile.context.ThreadContext.Builder
-
Defines the set of thread context types to capture from the thread that contextualizes an action or task.
R
- register(ContextManagerProvider) - Static method in interface org.eclipse.microprofile.context.spi.ContextManagerProvider
-
Allows the container to register the
ContextManagerProviderimplementation. - registerContextManager(ContextManager, ClassLoader) - Method in interface org.eclipse.microprofile.context.spi.ContextManagerProvider
-
Registers the given
ContextManagerfor the givenClassLoader, so that further calls toContextManagerProvider.getContextManager(ClassLoader)for the sameClassLoaderwill return this instance instead of creating a new one. - releaseContextManager(ContextManager) - Method in interface org.eclipse.microprofile.context.spi.ContextManagerProvider
-
Releases a
ContextManagerthat was previously registered withContextManagerProvider.registerContextManager(ContextManager, ClassLoader). - runAsync(Runnable) - Method in interface org.eclipse.microprofile.context.ManagedExecutor
-
Returns a new CompletableFuture that is completed by a task running in this executor after it runs the given action.
S
- SECURITY - Static variable in interface org.eclipse.microprofile.context.ThreadContext
-
Identifier for security context.
- setup(ContextManager) - Method in interface org.eclipse.microprofile.context.spi.ContextManagerExtension
-
This method is called after every
ContextManagerinstance has been successfully created. - supplyAsync(Supplier<U>) - Method in interface org.eclipse.microprofile.context.ManagedExecutor
-
Returns a new CompletableFuture that is completed by a task running in this executor after it runs the given action.
T
- ThreadContext - Interface in org.eclipse.microprofile.context
-
This interface offers various methods for capturing the context of the current thread and applying it to various interfaces that are commonly used with completion stages and executor services.
- ThreadContext.Builder - Interface in org.eclipse.microprofile.context
-
Builder for
ThreadContextinstances. - ThreadContextController - Interface in org.eclipse.microprofile.context.spi
-
Represents context that is applied to a particular thread, along with any state that is associated with it or that is necessary for restoring the previous context afterward.
- ThreadContextProvider - Interface in org.eclipse.microprofile.context.spi
-
Third party providers of thread context implement this interface to enable the provided type of context to participate in thread context capture and propagation when the
ManagedExecutorandThreadContextare used to create and contextualize dependent actions and tasks. - ThreadContextSnapshot - Interface in org.eclipse.microprofile.context.spi
-
An immutable snapshot of a particular type of thread context.
- TRANSACTION - Static variable in interface org.eclipse.microprofile.context.ThreadContext
-
Identifier for transaction context.
U
- unchanged(String...) - Method in interface org.eclipse.microprofile.context.ThreadContext.Builder
-
Defines a set of thread context types that are essentially ignored, in that they are neither captured nor are they propagated or cleared from thread(s) that execute the action or task.
- unregister() - Method in class org.eclipse.microprofile.context.spi.ContextManagerProviderRegistration
-
Unregister the
ContextManagerProviderthat is represented by thisContextManagerProviderRegistrationinstance.
W
- withContextCapture(CompletableFuture<T>) - Method in interface org.eclipse.microprofile.context.ThreadContext
-
Returns a new
CompletableFuturethat is completed by the completion of the specified stage. - withContextCapture(CompletionStage<T>) - Method in interface org.eclipse.microprofile.context.ThreadContext
-
Returns a new
CompletionStagethat is completed by the completion of the specified stage. - withContextManagerExtensions(ContextManagerExtension...) - Method in interface org.eclipse.microprofile.context.spi.ContextManager.Builder
-
Use the specified
ContextManagerExtensioninstances. - withDefaultExecutorService(ExecutorService) - Method in interface org.eclipse.microprofile.context.spi.ContextManager.Builder
-
Use the given
ExecutorServiceto execute async tasks for contextualisedCompletableFutureandCompletionStagewhen no executor is specified. - withThreadContextProviders(ThreadContextProvider...) - Method in interface org.eclipse.microprofile.context.spi.ContextManager.Builder
-
Use the specified
ThreadContextProviderinstances.
All Classes and Interfaces|All Packages|Constant Field Values