Class UnitsOfWork.Scope
java.lang.Object
com.kingsrook.qqq.backend.core.instrumentation.UnitsOfWork.Scope
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
UnitsOfWork
A begun unit or nested scope.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()End the scope; ending the outermost one reports the unit to listeners.The unit this scope belongs to (null for the no-op scope).
-
Method Details
-
getUnitOfWork
The unit this scope belongs to (null for the no-op scope). -
close
public void close()End the scope; ending the outermost one reports the unit to listeners.- Specified by:
closein interfaceAutoCloseable
-