Class UnitsOfWork.Scope

java.lang.Object
com.kingsrook.qqq.backend.core.instrumentation.UnitsOfWork.Scope
All Implemented Interfaces:
AutoCloseable
Enclosing class:
UnitsOfWork

public static final class UnitsOfWork.Scope extends Object implements AutoCloseable
A begun unit or nested scope.
  • Method Details

    • getUnitOfWork

      public UnitOfWork 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:
      close in interface AutoCloseable