com.caucho.ejb.timer
Class EjbTimerService

java.lang.Object
  extended by com.caucho.ejb.timer.EjbTimerService
All Implemented Interfaces:
TimerService

public class EjbTimerService
extends java.lang.Object
implements TimerService

Implements the timer service


Field Summary
protected static java.util.logging.Logger log
           
 
Method Summary
 Timer createTimer(java.util.Date expiration, long interval, java.io.Serializable info)
          Creates a timer
 Timer createTimer(java.util.Date expiration, java.io.Serializable info)
          Creates a timer
 Timer createTimer(long initialDuration, long intervalDuration, java.io.Serializable info)
          Creates an interval timer
 Timer createTimer(long duration, java.io.Serializable info)
          Creates a timer for a duration.
static EjbTimerService getCurrent()
           
static EjbTimerService getCurrent(java.lang.ClassLoader loader)
           
static EjbTimerService getLocal(java.lang.ClassLoader loader, AbstractContext context)
           
 java.util.Collection getTimers()
          Returns the timers
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

protected static final java.util.logging.Logger log
Method Detail

getLocal

public static EjbTimerService getLocal(java.lang.ClassLoader loader,
                                       AbstractContext context)

getCurrent

public static EjbTimerService getCurrent()

getCurrent

public static EjbTimerService getCurrent(java.lang.ClassLoader loader)

createTimer

public Timer createTimer(long duration,
                         java.io.Serializable info)
                  throws EJBException
Creates a timer for a duration.

Specified by:
createTimer in interface TimerService
Throws:
EJBException

createTimer

public Timer createTimer(long initialDuration,
                         long intervalDuration,
                         java.io.Serializable info)
                  throws EJBException
Creates an interval timer

Specified by:
createTimer in interface TimerService
Throws:
EJBException

createTimer

public Timer createTimer(java.util.Date expiration,
                         java.io.Serializable info)
                  throws EJBException
Creates a timer

Specified by:
createTimer in interface TimerService
Throws:
EJBException

createTimer

public Timer createTimer(java.util.Date expiration,
                         long interval,
                         java.io.Serializable info)
                  throws EJBException
Creates a timer

Specified by:
createTimer in interface TimerService
Throws:
EJBException

getTimers

public java.util.Collection getTimers()
                               throws EJBException
Returns the timers

Specified by:
getTimers in interface TimerService
Throws:
EJBException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object