Package io.smallrye.context.impl
Class SlowCapturedContextState
java.lang.Object
io.smallrye.context.impl.SlowCapturedContextState
- All Implemented Interfaces:
CapturedContextState
Holds the list of thread context snapshots that constitute a captured context. This captures the context in the constructor,
and restores it in @{link
begin()-
Constructor Summary
ConstructorsConstructorDescriptionSlowCapturedContextState(SmallRyeThreadContext threadContext) Captures the current context according to the given ThreadContext -
Method Summary
Modifier and TypeMethodDescriptionbegin()Restores the captured context and returns an instance that can unrestore (cleanup) it.
-
Constructor Details
-
SlowCapturedContextState
Captures the current context according to the given ThreadContext- Parameters:
threadContext- the thread context
-
-
Method Details
-
begin
Restores the captured context and returns an instance that can unrestore (cleanup) it.- Specified by:
beginin interfaceCapturedContextState- Returns:
- the captured context state
-