Class InvocationTraceContext.Scope
java.lang.Object
org.j7m.middleware.application.api.InvocationTraceContext.Scope
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
InvocationTraceContext
Thread-confined restoration handle; it grants no host invocation ownership.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Restores the previous trace snapshot exactly once on the creating thread.
-
Method Details
-
close
public void close()Restores the previous trace snapshot exactly once on the creating thread.- Specified by:
closein interfaceAutoCloseable- Throws:
IllegalStateException- if called from a different thread
-