|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jbpm.env.session.StandardTimerSession
public class StandardTimerSession
Timers created with this service are committed at the end of the transaction, so their execution will be late if the delay is shorter than the transaction. In that case, they will be executed at the end of the transaction.
Constructor Summary | |
---|---|
StandardTimerSession()
|
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. |
void |
start()
|
protected static void |
validScheduling(Timer timer)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StandardTimerSession()
Method Detail |
---|
public void start()
protected static void validScheduling(Timer timer)
public void schedule(Timer timer)
TimerSession
schedule
in interface TimerSession
timer
- the timer to be executed.public void cancel(Timer timer)
TimerSession
cancel
in interface TimerSession
timer
- the timer to be cancelled.public ObjectReference<Activity> getNextScheduledActivity()
getNextScheduledActivity
in interface TimerSession
public long getNextScheduledActivityTime()
getNextScheduledActivityTime
in interface TimerSession
public java.util.Collection<ObjectReference<Activity>> getScheduledActivities()
getScheduledActivities
in interface TimerSession
public ObjectReference<Activity> getScheduledActivity(long id)
TimerSession
getScheduledActivity
in interface TimerSession
id
- the identifier of the task to retrieve
public java.util.Collection<Timer> findTimers(Execution execution)
TimerSession
findTimers
in interface TimerSession
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |