Uses of Class
io.smallrye.context.SmallRyeThreadContext
-
Packages that use SmallRyeThreadContext Package Description io.smallrye.context io.smallrye.context.impl -
-
Uses of SmallRyeThreadContext in io.smallrye.context
Fields in io.smallrye.context declared as SmallRyeThreadContext Modifier and Type Field Description protected SmallRyeThreadContextCompletableFutureWrapper. contextMethods in io.smallrye.context that return SmallRyeThreadContext Modifier and Type Method Description SmallRyeThreadContextSmallRyeContextManager. allClearedThreadContext()Returns aSmallRyeThreadContextinstance which clears all thread contexts.SmallRyeThreadContextSmallRyeContextManager. allPropagatedThreadContext()Returns aSmallRyeThreadContextinstance which propagates all thread contexts.SmallRyeThreadContextSmallRyeThreadContext.Builder. build()static SmallRyeThreadContextSmallRyeThreadContext. getCurrentThreadContext()Returns the current thread's @{link SmallRyeThreadContext} if set, or null.static SmallRyeThreadContextSmallRyeThreadContext. getCurrentThreadContext(SmallRyeThreadContext defaultValue)Returns the current thread's @{link SmallRyeThreadContext} if set, or the given @{link SmallRyeThreadContext} default value.static SmallRyeThreadContextSmallRyeThreadContext. getCurrentThreadContextOrClearedContexts()Returns the current thread's @{link SmallRyeThreadContext} if set, or a @{link SmallRyeThreadContext} which clears all contexts.static SmallRyeThreadContextSmallRyeThreadContext. getCurrentThreadContextOrPropagatedContexts()Returns the current thread's @{link SmallRyeThreadContext} if set, or a @{link SmallRyeThreadContext} which propagates all contexts.SmallRyeThreadContextSmallRyeManagedExecutor. getThreadContext()Returns aThreadContextwhich has the same propagation settings as thisManagedExecutor, which uses thisManagedExecutoras its default executor.Methods in io.smallrye.context with parameters of type SmallRyeThreadContext Modifier and Type Method Description CapturedContextStateSmallRyeContextManager. captureContext(SmallRyeThreadContext context)static SmallRyeThreadContextSmallRyeThreadContext. getCurrentThreadContext(SmallRyeThreadContext defaultValue)Returns the current thread's @{link SmallRyeThreadContext} if set, or the given @{link SmallRyeThreadContext} default value.<T> CompletableFuture<T>JdkSpecific.Contract. newCompletableFutureWrapper(SmallRyeThreadContext threadContext, CompletableFuture<T> future, Executor executor, int flags)static <T> CompletableFuture<T>JdkSpecific. newCompletableFutureWrapper(SmallRyeThreadContext threadContext, CompletableFuture<T> future, Executor executor, int flags)<T> CompletionStage<T>JdkSpecific.Contract. newCompletionStageWrapper(SmallRyeThreadContext threadContext, CompletionStage<T> future, Executor executor)static <T> CompletionStage<T>JdkSpecific. newCompletionStageWrapper(SmallRyeThreadContext threadContext, CompletionStage<T> future, Executor executor)static CleanAutoCloseableSmallRyeThreadContext. withThreadContext(SmallRyeThreadContext threadContext)Updates the current @{link SmallRyeThreadContext} in use by the current thread, and returns an object suitable for use in try-with-resource to restore the previous value.static voidSmallRyeThreadContext. withThreadContext(SmallRyeThreadContext threadContext, Runnable f)Invokes the given @{link Runnable} with the current @{link SmallRyeThreadContext} updated to the given value for the current thread.Constructors in io.smallrye.context with parameters of type SmallRyeThreadContext Constructor Description CompletableFutureWrapper(SmallRyeThreadContext context, CompletableFuture<T> f, Executor executor, int flags)CompletionStageWrapper(SmallRyeThreadContext context, CompletionStage<T> f, Executor executor)SmallRyeManagedExecutor(int maxAsync, int maxQueued, SmallRyeThreadContext threadContext, ExecutorService executor, String injectionPointName) -
Uses of SmallRyeThreadContext in io.smallrye.context.impl
Methods in io.smallrye.context.impl with parameters of type SmallRyeThreadContext Modifier and Type Method Description <T> CompletableFuture<T>JdkSpecificImpl. newCompletableFutureWrapper(SmallRyeThreadContext threadContext, CompletableFuture<T> future, Executor executor, int flags)<T> CompletionStage<T>JdkSpecificImpl. newCompletionStageWrapper(SmallRyeThreadContext threadContext, CompletionStage<T> future, Executor executor)Constructors in io.smallrye.context.impl with parameters of type SmallRyeThreadContext Constructor Description ActiveContextState(SmallRyeThreadContext threadContext, List<org.eclipse.microprofile.context.spi.ThreadContextSnapshot> threadContextSnapshots)CapturedContextState(SmallRyeThreadContext threadContext, ThreadContextProviderPlan plan, Map<String,String> props)
-