org.qi4j.library.scheduler.schedule
Interface Schedule

All Known Subinterfaces:
ScheduleEntity
All Known Implementing Classes:
ScheduleEntityMixin, ScheduleMixin

public interface Schedule

Represent the scheduling of a Task.


Method Summary
 Property<String> cronExpression()
           
 Property<Boolean> durable()
          Denote the Schedule durability.
 boolean isTaskRunning()
           
 Property<String> schedulerIdentity()
           
 

Method Detail

schedulerIdentity

@Immutable
Property<String> schedulerIdentity()
Returns:
Identity of the Scheduler used to create this Schedule, immutable.

isTaskRunning

boolean isTaskRunning()
Returns:
True if the associated Task is currently running, false otherwise

cronExpression

@Queryable(value=false)
Property<String> cronExpression()
Returns:
The cron expression that will be used on UnitOfWork completion to compute next run

durable

@UseDefaults
Property<Boolean> durable()
Denote the Schedule durability. On shutdown and on startup, non durable Schedules are pruned. Non durable Schedules with a cron expression with no next run are pruned by SchedulerGarbageCollector

Returns:
True if this Schedule will survice a Qi4j Application restart, false otherwise