Class ContextualSupplier2<R>
java.lang.Object
io.smallrye.context.impl.wrappers.ContextualSupplier2<R>
- All Implemented Interfaces:
ContextHolder,Contextualized,ContextualSupplier<R>,Supplier<R>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcaptureThreadLocal(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.get()
-
Constructor Details
-
ContextualSupplier2
-
-
Method Details
-
get
-
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)
-