Uses of Interface
org.apache.camel.util.concurrent.ContextValue
Packages that use ContextValue
-
Uses of ContextValue in org.apache.camel.util.concurrent
Methods in org.apache.camel.util.concurrent that return ContextValueModifier and TypeMethodDescriptionstatic <T> ContextValue<T> ContextValue.newInstance(String name) Creates a new context value with the given name.static <T> ContextValue<T> ContextValue.newThreadLocal(String name) Creates a new ThreadLocal-based context value with the given name.static <T> ContextValue<T> ContextValue.newThreadLocal(String name, Supplier<T> supplier) Creates a new ThreadLocal-based context value with the given name and initial value supplier.Methods in org.apache.camel.util.concurrent with parameters of type ContextValueModifier and TypeMethodDescriptionstatic <T> voidContextValue.where(ContextValue<T> key, T value, Runnable operation) Executes the given operation with the context value bound to the specified value.static <T,R> R ContextValue.where(ContextValue<T> key, T value, Supplier<R> operation) Executes the given operation with the context value bound to the specified value.