|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TimerSession
Method Summary | |
---|---|
void |
cancel(Timer timer)
Cancels a timer. |
java.util.Collection<Timer> |
findTimers(Execution execution)
retrieve timers registered for a given execution |
ObjectReference<Activity> |
getNextScheduledActivity()
|
long |
getNextScheduledActivityTime()
|
java.util.Collection<ObjectReference<Activity>> |
getScheduledActivities()
|
ObjectReference<Activity> |
getScheduledActivity(long id)
retrieve a task that still exists from its identifier. |
void |
schedule(Timer timer)
Schedule the execution of a timer. |
Method Detail |
---|
void schedule(Timer timer)
timer
- the timer to be executed.
java.lang.IllegalArgumentException
- if the timer is null
or if its activity is null or if its dueDate is null
or if its dueDate is negative or if its dueDate is past
or if its dueDate is equals to Long.MAX_VALUEvoid cancel(Timer timer)
timer
- the timer to be cancelled.java.util.Collection<ObjectReference<Activity>> getScheduledActivities()
long getNextScheduledActivityTime()
ObjectReference<Activity> getNextScheduledActivity()
ObjectReference<Activity> getScheduledActivity(long id)
id
- the identifier of the task to retrieve
java.util.Collection<Timer> findTimers(Execution execution)
execution
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |