ThreadLocal across different thread boundaries.
| Modifier and Type | Class and Description |
|---|---|
| public static class | ContextPropagator.
type of class. T>A convenient implementation of empty |
| Modifier and Type | Field and Description |
|---|---|
| public static final String |
| Modifier and Type | Method and Description |
|---|---|
| public Consumer | |
| public Consumer | Returns: a Consumer to set values in new thread.Copies value from the parent thread into new executing thread. |
| public static < the type of variable that cross thread boundary T> Callable | Returns: decorated callable of type Tthe instance of propagator, Callable<T> ContextPropagatorthe callable to be decorated callable)Method decorates callable to copy variables across thread boundary. |
| public static < the type of variable that cross thread boundary T> Callable | Returns: decorated callable of type Tthe instance of propagators, Callable<T> ContextPropagator should be non null.the callable to be decorated callable)Method decorates callable to copy variables across thread boundary. |
| public static < the type of variable that cross thread boundary T> Runnable | Returns: decorated supplier of type Tthe instance of propagators, Runnable ContextPropagatorthe runnable to be decorated runnable)Method decorates runnable to copy variables across thread boundary. |
| public static < the type of variable that cross thread boundary T> Runnable | Returns: decorated supplier of type Tthe instance of propagator, Runnable ContextPropagatorthe runnable to be decorated runnable)Method decorates runnable to copy variables across thread boundary. |
| public static < the type of variable that cross thread boundary T> Supplier | Returns: decorated supplier of type Tthe instance of propagator, Supplier<T> ContextPropagatorthe supplier to be decorated supplier)Method decorates supplier to copy variables across thread boundary. |
| public static < the type of variable that cross thread boundary T> Supplier | Returns: decorated supplier of type Tthe instance of propagators, Supplier<T> ContextPropagator should be non null.the supplier to be decorated supplier)Method decorates supplier to copy variables across thread boundary. |
| public static < type. T> ContextPropagator | |
| public Supplier | Returns: a Supplier producing the value from current threadRetrieves value from the currently executing thread. |
| CONTEXT_PROPAGATOR_LIST_SHOULD_BE_NON_NULL | back to summary |
|---|---|
| public static final String CONTEXT_PROPAGATOR_LIST_SHOULD_BE_NON_NULL | |
| clear | back to summary |
|---|---|
| public Consumer CleanUp value before thread execution finish. This method is passed with the values received
from method | |
| copy | back to summary |
|---|---|
| public Consumer Copies value from the parent thread into new executing thread. This method is passed with the
values received from method | |
| decorateCallable | back to summary |
|---|---|
| public static <T> Callable Method decorates callable to copy variables across thread boundary.
| |
| decorateCallable | back to summary |
|---|---|
| public static <T> Callable Method decorates callable to copy variables across thread boundary.
| |
| decorateRunnable | back to summary |
|---|---|
| public static <T> Runnable decorateRunnable(List<? extends ContextPropagator<T>> propagators, Runnable runnable) Method decorates runnable to copy variables across thread boundary.
| |
| decorateRunnable | back to summary |
|---|---|
| public static <T> Runnable decorateRunnable(ContextPropagator<T> propagator, Runnable runnable) Method decorates runnable to copy variables across thread boundary.
| |
| decorateSupplier | back to summary |
|---|---|
| public static <T> Supplier Method decorates supplier to copy variables across thread boundary.
| |
| decorateSupplier | back to summary |
|---|---|
| public static <T> Supplier Method decorates supplier to copy variables across thread boundary.
| |
| empty | back to summary |
|---|---|
| public static <T> ContextPropagator An empty context propagator.
| |
| retrieve | back to summary |
|---|---|
| public Supplier Retrieves value from the currently executing thread. This method should produce values (as Supplier) that needs to be propagated to new thread. | |
ContextPropagator
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Consumer | clear()
Implements io. CleanUp value before thread execution finish. |
| public Consumer | copy()
Implements io. Copies value from the parent thread into new executing thread. |
| public Supplier | retrieve()
Implements io. Retrieves value from the currently executing thread. |
| EmptyContextPropagator | back to summary |
|---|---|
| public EmptyContextPropagator() | |
| clear | back to summary |
|---|---|
| public Consumer Implements io. Doc from io. CleanUp value before thread execution finish. This method is passed with the values received
from method | |
| copy | back to summary |
|---|---|
| public Consumer Implements io. Doc from io. Copies value from the parent thread into new executing thread. This method is passed with the
values received from method | |
| retrieve | back to summary |
|---|---|
| public Supplier Implements io. Doc from io. Retrieves value from the currently executing thread. This method should produce values (as Supplier) that needs to be propagated to new thread. | |