Skip to content

PeriodicTriggerExecutor

Runs a PeriodicTrigger: fires when resumed, then once per period.

Inheritance

Constructors

PeriodicTriggerExecutor

PeriodicTriggerExecutor()

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.

onResume

Future<bool> onResume()
override

Called by resume. Returns true if successfully resumed.

If false, the executor moves to ExecutorState.PausedButShouldBeResumed.