org.qi4j.library.scheduler.schedule
Interface ScheduleEntity

All Superinterfaces:
Composite, Entity, EntityComposite, Identity, Schedule, UnitOfWorkCallback
All Known Implementing Classes:
ScheduleEntityMixin

@Mixins(value={ScheduleMixin.class,ScheduleEntityMixin.class})
public interface ScheduleEntity
extends Schedule, UnitOfWorkCallback, EntityComposite

A Schedule computes its next run based on its cron expression. Cron expression syntax is documented in CronExpressionConstraint.


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
 
Method Summary
 Long firstRunAfter(Long start)
           
 Property<Long> nextRun()
           
 Property<Boolean> running()
           
 Property<Long> start()
           
 Association<Task> task()
           
 
Methods inherited from interface org.qi4j.library.scheduler.schedule.Schedule
cronExpression, durable, isTaskRunning, schedulerIdentity
 
Methods inherited from interface org.qi4j.api.unitofwork.UnitOfWorkCallback
afterCompletion, beforeCompletion
 
Methods inherited from interface org.qi4j.api.entity.Identity
identity
 
Methods inherited from interface org.qi4j.api.composite.Composite
metaInfo, type
 

Method Detail

task

Association<Task> task()

start

Property<Long> start()

nextRun

@Optional
Property<Long> nextRun()

running

@UseDefaults
Property<Boolean> running()

firstRunAfter

Long firstRunAfter(Long start)