public class SmallRyeThreadContext extends Object implements org.eclipse.microprofile.context.ThreadContext
| Modifier and Type | Class and Description |
|---|---|
static class |
SmallRyeThreadContext.Builder |
| Constructor and Description |
|---|
SmallRyeThreadContext(SmallRyeContextManager manager,
String[] propagated,
String[] unchanged,
String[] cleared) |
SmallRyeThreadContext(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> BiConsumer<T,U> |
contextualConsumer(BiConsumer<T,U> consumer) |
<T> Consumer<T> |
contextualConsumer(Consumer<T> consumer) |
<T,U,R> BiFunction<T,U,R> |
contextualFunction(BiFunction<T,U,R> function) |
<T,R> Function<T,R> |
contextualFunction(Function<T,R> function) |
Runnable |
contextualRunnable(Runnable runnable) |
<R> Supplier<R> |
contextualSupplier(Supplier<R> supplier) |
Executor |
currentContextExecutor() |
ThreadContextProviderPlan |
getPlan() |
String |
toString() |
<T> CompletableFuture<T> |
withContextCapture(CompletableFuture<T> future) |
<T> CompletableFuture<T> |
withContextCapture(CompletableFuture<T> future,
Executor executor) |
<T> CompletionStage<T> |
withContextCapture(CompletionStage<T> future) |
public SmallRyeThreadContext(SmallRyeContextManager manager, String[] propagated, String[] unchanged, String[] cleared)
public SmallRyeThreadContext(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> CompletableFuture<T> withContextCapture(CompletableFuture<T> future, Executor executor)
public <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> BiConsumer<T,U> contextualConsumer(BiConsumer<T,U> consumer)
contextualConsumer in interface org.eclipse.microprofile.context.ThreadContextpublic <T,U,R> BiFunction<T,U,R> contextualFunction(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> Consumer<T> contextualConsumer(Consumer<T> consumer)
contextualConsumer in interface org.eclipse.microprofile.context.ThreadContextpublic <T,R> Function<T,R> contextualFunction(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> Supplier<R> contextualSupplier(Supplier<R> supplier)
contextualSupplier in interface org.eclipse.microprofile.context.ThreadContextCopyright © 2018–2020. All rights reserved.