Package io.micrometer.context
Interface ContextSnapshot.Scope
- All Superinterfaces:
AutoCloseable
- Enclosing interface:
ContextSnapshot
An object to use to reset
ThreadLocal values at the end of a context scope.-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()ResetThreadLocalvalues, either removing them or restoring their previous values, if any.
-
Method Details
-
close
void close()ResetThreadLocalvalues, either removing them or restoring their previous values, if any.- Specified by:
closein interfaceAutoCloseable
-