Package io.smallrye.context.impl
Class SlowActiveContextState
java.lang.Object
io.smallrye.context.impl.SlowActiveContextState
- All Implemented Interfaces:
CleanAutoCloseable,AutoCloseable
Restores a context and allows you to clean it up (unrestore it).
-
Constructor Summary
ConstructorsConstructorDescriptionSlowActiveContextState(SmallRyeThreadContext threadContext, List<org.eclipse.microprofile.context.spi.ThreadContextSnapshot> threadContextSnapshots) Restores a previously captured context. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Unrestores / clean-up a previously restored context.
-
Constructor Details
-
SlowActiveContextState
public SlowActiveContextState(SmallRyeThreadContext threadContext, List<org.eclipse.microprofile.context.spi.ThreadContextSnapshot> threadContextSnapshots) Restores a previously captured context.- Parameters:
threadContext- the thread contextthreadContextSnapshots- the captured snapshots
-
-
Method Details
-
close
public void close()Unrestores / clean-up a previously restored context.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCleanAutoCloseable
-