org.qi4j.library.scheduler.schedule
Class ScheduleEntityMixin

java.lang.Object
  extended by org.qi4j.library.scheduler.schedule.ScheduleEntityMixin
All Implemented Interfaces:
Composite, Entity, EntityComposite, Identity, UnitOfWorkCallback, Schedule, ScheduleEntity

public abstract class ScheduleEntityMixin
extends Object
implements ScheduleEntity


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.qi4j.api.unitofwork.UnitOfWorkCallback
UnitOfWorkCallback.UnitOfWorkStatus
 
Nested classes/interfaces inherited from interface org.qi4j.api.entity.Identity
Identity.IdentityMixin
 
Constructor Summary
ScheduleEntityMixin()
           
 
Method Summary
 void afterCompletion(UnitOfWorkCallback.UnitOfWorkStatus status)
          This is called after the completion or discarding of the UnitOfWork.
 void beforeCompletion()
          This is called before the completion of the UnitOfWork.
 Long firstRunAfter(Long start)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.qi4j.library.scheduler.schedule.ScheduleEntity
nextRun, running, start, task
 
Methods inherited from interface org.qi4j.library.scheduler.schedule.Schedule
cronExpression, durable, isTaskRunning, schedulerIdentity
 
Methods inherited from interface org.qi4j.api.entity.Identity
identity
 
Methods inherited from interface org.qi4j.api.composite.Composite
metaInfo, type
 

Constructor Detail

ScheduleEntityMixin

public ScheduleEntityMixin()
Method Detail

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