public interface Schedule extends Identity
Task.Identity.IdentityMixin| Modifier and Type | Method and Description |
|---|---|
boolean |
isTaskRunning() |
long |
nextRun(long from)
Compute the next time this schedule is to be run.
|
String |
presentationString()
Return a representation of the Schedule in a human understandable format.
|
Property<DateTime> |
start()
The first run of this Schedule.
|
Association<Task> |
task() |
void |
taskCompletedSuccessfully()
Called directly after the
Runnable.run() method has been completed and
returned from the method normally. |
void |
taskCompletedWithException(RuntimeException ex)
Called directly after the
Runnable.run() method has been completed but
threw a RuntimeException. |
void |
taskStarting()
Called just before the
Runnable.run() method is called. |
Association<Task> task()
@Immutable Property<DateTime> start()
void taskStarting()
Runnable.run() method is called.void taskCompletedSuccessfully()
Runnable.run() method has been completed and
returned from the method normally.void taskCompletedWithException(RuntimeException ex)
Runnable.run() method has been completed but
threw a RuntimeException.ex - boolean isTaskRunning()
Task is currently running, false otherwiselong nextRun(long from)
from - The starting time when to look for the next time it will run.String presentationString()