org.ow2.bonita.pvm.internal.jobexecutor
Class JobExecutorTimerSession
java.lang.Object
org.ow2.bonita.pvm.internal.jobexecutor.JobExecutorTimerSession
- All Implemented Interfaces:
- TimerSession
public class JobExecutorTimerSession
- extends java.lang.Object
- implements TimerSession
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.
- Author:
- Tom Baeyens, Pascal Verdage
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JobExecutorTimerSession
public JobExecutorTimerSession()
schedule
public void schedule(Timer timer)
- Description copied from interface:
TimerSession
- Schedule the execution of a timer.
- Specified by:
schedule
in interface TimerSession
validate
protected void validate(Timer timer)
cancel
public void cancel(Timer timer)
- Description copied from interface:
TimerSession
- Cancels a timer.
If a transaction is in progress, the cancellation will be effective at the
end of the transaction. If the timer has been created in the same
transaction or if there is no transaction, the cancellation is immediately
effective.
If the timer is executing when the cancellation becomes effective, the
execution in progress will not be stopped.
- Specified by:
cancel
in interface TimerSession
Copyright © 2009 OW2 Consortium. All Rights Reserved.