public class ThreadContextImpl extends Object implements org.eclipse.microprofile.context.ThreadContext
| Constructor and Description |
|---|
ThreadContextImpl(SmallRyeContextManager manager,
String[] propagated,
String[] unchanged,
String[] cleared) |
ThreadContextImpl(SmallRyeContextManager manager,
String[] propagated,
String[] unchanged,
String[] cleared,
String injectionPointName) |
| Modifier and Type | Method and Description |
|---|---|
<R> Callable<R> |
contextualCallable(Callable<R> callable) |
<T,U> java.util.function.BiConsumer<T,U> |
contextualConsumer(java.util.function.BiConsumer<T,U> consumer) |
<T> java.util.function.Consumer<T> |
contextualConsumer(java.util.function.Consumer<T> consumer) |
<T,U,R> java.util.function.BiFunction<T,U,R> |
contextualFunction(java.util.function.BiFunction<T,U,R> function) |
<T,R> java.util.function.Function<T,R> |
contextualFunction(java.util.function.Function<T,R> function) |
Runnable |
contextualRunnable(Runnable runnable) |
<R> java.util.function.Supplier<R> |
contextualSupplier(java.util.function.Supplier<R> supplier) |
Executor |
currentContextExecutor() |
ThreadContextProviderPlan |
getPlan() |
String |
toString() |
<T> CompletableFuture<T> |
withContextCapture(CompletableFuture<T> future) |
<T> CompletionStage<T> |
withContextCapture(CompletionStage<T> future) |
public ThreadContextImpl(SmallRyeContextManager manager, String[] propagated, String[] unchanged, String[] cleared)
public ThreadContextImpl(SmallRyeContextManager manager, String[] propagated, String[] unchanged, String[] cleared, String injectionPointName)
public ThreadContextProviderPlan getPlan()
public <T> CompletableFuture<T> withContextCapture(CompletableFuture<T> future)
withContextCapture in interface org.eclipse.microprofile.context.ThreadContextpublic <T> CompletionStage<T> withContextCapture(CompletionStage<T> future)
withContextCapture in interface org.eclipse.microprofile.context.ThreadContextpublic Executor currentContextExecutor()
currentContextExecutor in interface org.eclipse.microprofile.context.ThreadContextpublic <T,U> java.util.function.BiConsumer<T,U> contextualConsumer(java.util.function.BiConsumer<T,U> consumer)
contextualConsumer in interface org.eclipse.microprofile.context.ThreadContextpublic <T,U,R> java.util.function.BiFunction<T,U,R> contextualFunction(java.util.function.BiFunction<T,U,R> function)
contextualFunction in interface org.eclipse.microprofile.context.ThreadContextpublic <R> Callable<R> contextualCallable(Callable<R> callable)
contextualCallable in interface org.eclipse.microprofile.context.ThreadContextpublic <T> java.util.function.Consumer<T> contextualConsumer(java.util.function.Consumer<T> consumer)
contextualConsumer in interface org.eclipse.microprofile.context.ThreadContextpublic <T,R> java.util.function.Function<T,R> contextualFunction(java.util.function.Function<T,R> function)
contextualFunction in interface org.eclipse.microprofile.context.ThreadContextpublic Runnable contextualRunnable(Runnable runnable)
contextualRunnable in interface org.eclipse.microprofile.context.ThreadContextpublic <R> java.util.function.Supplier<R> contextualSupplier(java.util.function.Supplier<R> supplier)
contextualSupplier in interface org.eclipse.microprofile.context.ThreadContextCopyright © 2019. All rights reserved.