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 TypeMethodDescriptionvoid
close()
ResetThreadLocal
values, either removing them or restoring their previous values, if any.
-
Method Details
-
close
void close()ResetThreadLocal
values, either removing them or restoring their previous values, if any.- Specified by:
close
in interfaceAutoCloseable
-