Skip to content

DateTimeTriggerExecutor

Runs a DateTimeTrigger: fires once at the specified date and time.

Resuming fails if that time is in the past.

Inheritance

Constructors

DateTimeTriggerExecutor

DateTimeTriggerExecutor()

Methods

getSchedule

List<DateTime> getSchedule(
  1. DateTime from,
  2. DateTime to, [
  3. int? max
])
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.