Interface Scope

All Superinterfaces:
AutoCloseable

public interface Scope extends AutoCloseable
An abstraction for detaching a context from the current thread. This abstraction is intended to allow the modifications performed by CapturedContext.attachContext() to be undone. In practice, this may look like restoring a ThreadLocal to the state it had before the call to CapturedContext.attachContext().
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Scope
    No-op Scope.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
  • Field Details

  • Method Details