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) |
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.ThreadContext
public <T> CompletableFuture<T> withContextCapture(CompletableFuture<T> future, org.eclipse.microprofile.context.ManagedExecutor executor)
public <T> CompletionStage<T> withContextCapture(CompletionStage<T> future)
withContextCapture
in interface org.eclipse.microprofile.context.ThreadContext
public Executor currentContextExecutor()
currentContextExecutor
in interface org.eclipse.microprofile.context.ThreadContext
public <T,U> java.util.function.BiConsumer<T,U> contextualConsumer(java.util.function.BiConsumer<T,U> consumer)
contextualConsumer
in interface org.eclipse.microprofile.context.ThreadContext
public <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.ThreadContext
public <R> Callable<R> contextualCallable(Callable<R> callable)
contextualCallable
in interface org.eclipse.microprofile.context.ThreadContext
public <T> java.util.function.Consumer<T> contextualConsumer(java.util.function.Consumer<T> consumer)
contextualConsumer
in interface org.eclipse.microprofile.context.ThreadContext
public <T,R> java.util.function.Function<T,R> contextualFunction(java.util.function.Function<T,R> function)
contextualFunction
in interface org.eclipse.microprofile.context.ThreadContext
public Runnable contextualRunnable(Runnable runnable)
contextualRunnable
in interface org.eclipse.microprofile.context.ThreadContext
public <R> java.util.function.Supplier<R> contextualSupplier(java.util.function.Supplier<R> supplier)
contextualSupplier
in interface org.eclipse.microprofile.context.ThreadContext
Copyright © 2019 JBoss by Red Hat. All rights reserved.