Package org.kie.kogito.services.uow
Class CollectingUnitOfWork
- java.lang.Object
-
- org.kie.kogito.services.uow.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 Summary
Constructors Constructor Description CollectingUnitOfWork(EventManager eventManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidabort()protected voidcheckDone()protected voidcheckStarted()protected voiddone()voidend()voidintercept(WorkUnit work)protected Collection<WorkUnit<?>>sorted()voidstart()
-
-
-
Constructor Detail
-
CollectingUnitOfWork
public CollectingUnitOfWork(EventManager eventManager)
-
-
Method Detail
-
start
public void start()
- Specified by:
startin interfaceUnitOfWork
-
end
public void end()
- Specified by:
endin interfaceUnitOfWork
-
abort
public void abort()
- Specified by:
abortin interfaceUnitOfWork
-
intercept
public void intercept(WorkUnit work)
- Specified by:
interceptin interfaceUnitOfWork
-
sorted
protected Collection<WorkUnit<?>> sorted()
-
checkDone
protected void checkDone()
-
checkStarted
protected void checkStarted()
-
done
protected void done()
-
-