Class InvocationTraceContext.Scope

java.lang.Object
org.j7m.middleware.application.api.InvocationTraceContext.Scope
All Implemented Interfaces:
AutoCloseable
Enclosing class:
InvocationTraceContext

public static final class InvocationTraceContext.Scope extends Object implements AutoCloseable
Thread-confined restoration handle; it grants no host invocation ownership.
  • Method Details

    • close

      public void close()
      Restores the previous trace snapshot exactly once on the creating thread.
      Specified by:
      close in interface AutoCloseable
      Throws:
      IllegalStateException - if called from a different thread