Class SlowActiveContextState

java.lang.Object
io.smallrye.context.impl.SlowActiveContextState
All Implemented Interfaces:
CleanAutoCloseable, AutoCloseable

public class SlowActiveContextState extends Object implements CleanAutoCloseable
Restores a context and allows you to clean it up (unrestore it).
  • Constructor Details

    • SlowActiveContextState

      public SlowActiveContextState(SmallRyeThreadContext threadContext, List<org.eclipse.microprofile.context.spi.ThreadContextSnapshot> threadContextSnapshots)
      Restores a previously captured context.
      Parameters:
      threadContext - the thread context
      threadContextSnapshots - the captured snapshots
  • Method Details