Class ContextualBiFunctionN<T,U,R>
- java.lang.Object
-
- io.smallrye.context.impl.wrappers.ContextualBiFunctionN<T,U,R>
-
- All Implemented Interfaces:
ContextHolder,Contextualized,ContextualBiFunction<T,U,R>,BiFunction<T,U,R>
public class ContextualBiFunctionN<T,U,R> extends Object implements ContextualBiFunction<T,U,R>
-
-
Constructor Summary
Constructors Constructor Description ContextualBiFunctionN(BiFunction<T,U,R> biFunction, int n)
-
Method Summary
Modifier and Type Method Description Rapply(T t, U u)voidcaptureThreadLocal(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, wait
-
Methods inherited from interface java.util.function.BiFunction
andThen
-
-
-
-
Constructor Detail
-
ContextualBiFunctionN
public ContextualBiFunctionN(BiFunction<T,U,R> biFunction, int n)
-
-
Method Detail
-
captureThreadLocal
public void captureThreadLocal(int index, ThreadLocal<Object> threadLocal, Object value)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)
-
-