Class ContextualBiConsumer1<T,U>
java.lang.Object
io.smallrye.context.impl.wrappers.ContextualBiConsumer1<T,U>
- All Implemented Interfaces:
ContextHolder,Contextualized,ContextualBiConsumer<T,,U> BiConsumer<T,U>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidcaptureThreadLocal(int index, ThreadLocal<Object> threadLocal, Object value) Store a thread local and its current value while capturing, in a way that storage is flattend in the context wrapper with minimal allocation.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiConsumer
andThen
-
Constructor Details
-
ContextualBiConsumer1
-
-
Method Details
-
accept
- Specified by:
acceptin interfaceBiConsumer<T,U>
-
captureThreadLocal
Description copied from interface:ContextHolderStore a thread local and its current value while capturing, in a way that storage is flattend in the context wrapper with minimal allocation.- Specified by:
captureThreadLocalin interfaceContextHolder- Parameters:
index- the context provider indexthreadLocal- the context provider's threadLocalvalue- the current or cleared value of the threadLocal (depending on ThreadContext settings)
-