Class CollectingUnitOfWork

  • All Implemented Interfaces:
    UnitOfWork

    public class CollectingUnitOfWork
    extends Object
    implements UnitOfWork
    Simple unit of work that collects work elements throughout the life of the unit and invokes all of them at the end when end method is invoked. It does not invoke the work when abort is invoked, only clears the collected items.
    • Constructor Detail

      • CollectingUnitOfWork

        public CollectingUnitOfWork​(EventManager eventManager)
    • Method Detail

      • start

        public void start()
        Specified by:
        start in interface UnitOfWork
      • end

        public void end()
        Specified by:
        end in interface UnitOfWork
      • abort

        public void abort()
        Specified by:
        abort in interface UnitOfWork
      • checkDone

        protected void checkDone()
      • checkStarted

        protected void checkStarted()
      • done

        protected void done()