org.qi4j.library.scheduler.schedule
Class ScheduleEntityMixin
java.lang.Object
org.qi4j.library.scheduler.schedule.ScheduleEntityMixin
- All Implemented Interfaces:
- Composite, Entity, EntityComposite, Identity, UnitOfWorkCallback, Schedule, ScheduleEntity
public abstract class ScheduleEntityMixin
- extends Object
- implements ScheduleEntity
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScheduleEntityMixin
public ScheduleEntityMixin()
firstRunAfter
public Long firstRunAfter(Long start)
- Specified by:
firstRunAfter
in interface ScheduleEntity
beforeCompletion
public void beforeCompletion()
throws UnitOfWorkCompletionException
- Description copied from interface:
UnitOfWorkCallback
- This is called before the completion of the UnitOfWork.
The callback may do any validation checks and throw
UnitOfWorkCompletionException if there is any reason
why the UnitOfWork is not in a valid state to be completed.
- Specified by:
beforeCompletion
in interface UnitOfWorkCallback
- Throws:
UnitOfWorkCompletionException
afterCompletion
public void afterCompletion(UnitOfWorkCallback.UnitOfWorkStatus status)
- Description copied from interface:
UnitOfWorkCallback
- This is called after the completion or discarding
of the UnitOfWork. The callback may do any cleanup
necessary related to the UnitOfWork. Note that the
UnitOfWork is no longer active when this method is
called, so no methods on it may be invoked.
- Specified by:
afterCompletion
in interface UnitOfWorkCallback