OneTimeSchedule

Schedule which defines a job to be executed once at a fixed time.

Note that if a job is scheduled with this schedule, and the execution time is set to a time in the past, the job will be executed immediately.

Constructors

this
this(SysTime executionTime)

Constructs a one-time schedule to execute at the specified time.

this
this(Duration timeUntilExecution)

Constructs a one-time schedule to execute after the given duration has passed, from the current system time.

Members

Functions

getNextExecutionTime
Nullable!SysTime getNextExecutionTime(SysTime currentTime)

Gets the next execution time. If this one-time schedule has already executed once, it will always return null.

isRepeating
bool isRepeating()

Tells the scheduler that this schedule is never repeating.

markExecuted
void markExecuted(SysTime executionTime)

Marks this schedule as having been executed. Once this is called, no more jobs with this schedule will be executed.

Inherited Members

From JobSchedule

getNextExecutionTime
Nullable!SysTime getNextExecutionTime(SysTime currentTime)

Gets the timestamp at which the scheduler should plan to execute a job with this schedule next.

markExecuted
void markExecuted(SysTime executionTime)

Marks the schedule as having been executed at the given time.

isRepeating
bool isRepeating()

Tells whether the schedule is repeating; that jobs with this schedule should be re-queued after being executed.

Meta