Skip to content

CronScheduledTriggerExecutor

Runs a CronScheduledTrigger: fires at the times of its cron expression.

Inheritance

Constructors

CronScheduledTriggerExecutor

CronScheduledTriggerExecutor()

Methods

getSchedule

List<DateTime> getSchedule(
  1. DateTime from,
  2. DateTime to, [
  3. int max = 100
])
override

Returns the times this trigger fires between from and to.

Ordered by time, except for RandomRecurrentTriggerExecutor.

max limits the number of iterations; its default depends on the implementation.

onPause

Future<bool> onPause()
override

Called by pause. Returns true if successfully paused.

If false, the state is not changed.

onResume

Future<bool> onResume()
override

Called by resume. Returns true if successfully resumed.

If false, the executor moves to ExecutorState.PausedButShouldBeResumed.