java.lang.Object
org.axonframework.messaging.core.unitofwork.UnitOfWork
All Implemented Interfaces:
ProcessingLifecycle

public class UnitOfWork extends Object implements ProcessingLifecycle
This class represents a Unit of Work that monitors the processing of a task.

As an implementation of the ProcessingLifecycle, steps can be attached in several phases of the Unit of Work to ensure the task-to-process is taken care off correctly. Furthermore, the Unit of Work implements resource management through the ProcessingContext, providing the possibility to carry along resources throughout the phases.

It is strongly recommended to interface with the ProcessingLifecycle and/or ProcessingContext instead of with the UnitOfWork directly.

Since:
0.6
Author:
Allard Buijze, Gerard Klijs, Milan Savić, Mitchell Herrijgers, Sara Pellegrini, Steven van Beelen