Class ThreadLocalContext.Activation
java.lang.Object
io.fluxzero.sdk.common.ThreadLocalContext.Activation
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
ThreadLocalContext
A reusable context-switching scope created by
ThreadLocalContext.openActivation().-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Restores the context that was active when this scope was opened.voidReplaces the currently active context with the supplied snapshot.
-
Method Details
-
use
Replaces the currently active context with the supplied snapshot. -
close
public void close()Restores the context that was active when this scope was opened.- Specified by:
closein interfaceAutoCloseable
-