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