|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Schedule
Represent the scheduling of a Task
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.qi4j.api.entity.Identity |
---|
Identity.IdentityMixin |
Method Summary | |
---|---|
boolean |
isTaskRunning()
|
long |
nextRun(long from)
Compute the next time this schedule is to be run. |
java.lang.String |
presentationString()
Return a representation of the Schedule in a human understandable format. |
Property<org.joda.time.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(java.lang.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. |
Methods inherited from interface org.qi4j.api.entity.Identity |
---|
identity |
Method Detail |
---|
Association<Task> task()
@Immutable Property<org.joda.time.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(java.lang.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.
java.lang.String presentationString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |