Package io.automatiko.engine.api.uow
Interface UnitOfWorkManager
-
public interface UnitOfWorkManagerManager that controls and give access to UnitOfWork. Main entry point for application usage to gain control about the execution and grouping of work.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description UnitOfWorkcurrentUnitOfWork()Returns current unit of work for this execution context (usually thread).EventManagereventManager()Returns instance of the event manager configured for this unit of work managerUnitOfWorknewUnitOfWork()Returns new not started UnitOfWork that is associated with the manager to manage it's life cycle.
-
-
-
Method Detail
-
currentUnitOfWork
UnitOfWork currentUnitOfWork()
Returns current unit of work for this execution context (usually thread).- Returns:
- current unit of work
-
newUnitOfWork
UnitOfWork newUnitOfWork()
Returns new not started UnitOfWork that is associated with the manager to manage it's life cycle.- Returns:
- new, not started unit of work
-
eventManager
EventManager eventManager()
Returns instance of the event manager configured for this unit of work manager- Returns:
- event manager instance
-
-