T - type of class.public static class ContextPropagator.EmptyContextPropagator<T> extends java.lang.Object implements ContextPropagator<T>
ContextPropagatorContextPropagator.EmptyContextPropagator<T>| Constructor and Description |
|---|
EmptyContextPropagator() |
| Modifier and Type | Method and Description |
|---|---|
java.util.function.Consumer<java.util.Optional<T>> |
clear()
CleanUp value before thread execution finish.
|
java.util.function.Consumer<java.util.Optional<T>> |
copy()
Copies value from the parent thread into new executing thread.
|
java.util.function.Supplier<java.util.Optional<T>> |
retrieve()
Retrieves value from the currently executing thread.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdecorateRunnable, decorateRunnable, decorateSupplier, decorateSupplier, emptypublic java.util.function.Supplier<java.util.Optional<T>> retrieve()
ContextPropagatorretrieve in interface ContextPropagator<T>public java.util.function.Consumer<java.util.Optional<T>> copy()
ContextPropagatorContextPropagator.retrieve() in the parent thread.copy in interface ContextPropagator<T>public java.util.function.Consumer<java.util.Optional<T>> clear()
ContextPropagatorContextPropagator.retrieve() in the parent thread.clear in interface ContextPropagator<T>