org.ow2.bonita.pvm.internal.ejb
Class EnterpriseTimerSession

java.lang.Object
  extended by org.ow2.bonita.pvm.internal.ejb.EnterpriseTimerSession
All Implemented Interfaces:
TimerSession

public class EnterpriseTimerSession
extends java.lang.Object
implements TimerSession

Timer session based on the EJB 2.1 timer service.

Author:
Tom Baeyens, Alejandro Guizar

Constructor Summary
EnterpriseTimerSession()
           
 
Method Summary
 void cancel(Timer timer)
          Cancels a timer.
 void schedule(Timer timer)
          Schedule the execution of a timer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnterpriseTimerSession

public EnterpriseTimerSession()
Method Detail

schedule

public void schedule(Timer timer)
Description copied from interface: TimerSession
Schedule the execution of a timer.

Specified by:
schedule in interface TimerSession

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.