org.ow2.orchestra.pvm.internal.ejb
Class EnterpriseTimerSession
java.lang.Object
org.ow2.orchestra.pvm.internal.ejb.EnterpriseTimerSession
- All Implemented Interfaces:
- TimerSession
public class EnterpriseTimerSession
- extends Object
- implements TimerSession
Timer session based on the EJB 2.1 timer service.
- Author:
- Tom Baeyens, Alejandro Guizar
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EnterpriseTimerSession
public EnterpriseTimerSession()
schedule
public void schedule(TimerImpl timer)
- Description copied from interface:
TimerSession
- Schedule the execution of a timer.
- Specified by:
schedule in interface TimerSession
cancel
public void cancel(TimerImpl 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 © 2011 OW2 Consortium. All Rights Reserved.