Interface ContextSnapshot.Scope

All Superinterfaces:
AutoCloseable
Enclosing interface:
ContextSnapshot

public static interface ContextSnapshot.Scope extends AutoCloseable
An object to use to reset ThreadLocal values at the end of a context scope.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Reset ThreadLocal values, either removing them or restoring their previous values, if any.
  • Method Details

    • close

      void close()
      Reset ThreadLocal values, either removing them or restoring their previous values, if any.
      Specified by:
      close in interface AutoCloseable