Class ContextualExecutor2

java.lang.Object
io.smallrye.context.impl.wrappers.ContextualExecutor2
All Implemented Interfaces:
ContextHolder, Contextualized, ContextualExecutor, Executor

public class ContextualExecutor2 extends Object implements ContextualExecutor
  • Constructor Details

    • ContextualExecutor2

      public ContextualExecutor2()
  • Method Details

    • execute

      public void execute(Runnable command)
      Specified by:
      execute in interface Executor
    • captureThreadLocal

      public void captureThreadLocal(int index, ThreadLocal<Object> threadLocal, Object value)
      Description copied from interface: ContextHolder
      Store 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:
      captureThreadLocal in interface ContextHolder
      Parameters:
      index - the context provider index
      threadLocal - the context provider's threadLocal
      value - the current or cleared value of the threadLocal (depending on ThreadContext settings)