org.openejb.timer
Class BasicTimerService

java.lang.Object
  extended byorg.openejb.timer.BasicTimerService

public class BasicTimerService
extends Object

Version:
$Revision: 1.1 $ $Date: 2004/07/20 23:40:03 $

Constructor Summary
BasicTimerService(EJBTimeoutInvocationFactory invocationFactory, org.apache.geronimo.core.service.Interceptor stack, org.apache.geronimo.timer.ThreadPooledTimer timer, String key, String kernelName, javax.management.ObjectName timerSourceName, org.apache.geronimo.transaction.context.TransactionContextManager transactionContextManager)
           
 
Method Summary
 javax.ejb.Timer createTimer(Object id, Date initialExpiration, long intervalDuration, Serializable info)
           
 javax.ejb.Timer createTimer(Object id, Date expiration, Serializable info)
           
 javax.ejb.Timer createTimer(Object id, long initialDuration, long intervalDuration, Serializable info)
           
 javax.ejb.Timer createTimer(Object id, long duration, Serializable info)
           
 void doStart()
           
 void doStop()
           
 Collection getTimers(Object id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicTimerService

public BasicTimerService(EJBTimeoutInvocationFactory invocationFactory,
                         org.apache.geronimo.core.service.Interceptor stack,
                         org.apache.geronimo.timer.ThreadPooledTimer timer,
                         String key,
                         String kernelName,
                         javax.management.ObjectName timerSourceName,
                         org.apache.geronimo.transaction.context.TransactionContextManager transactionContextManager)
                  throws org.apache.geronimo.timer.PersistenceException
Method Detail

doStart

public void doStart()
             throws org.apache.geronimo.timer.PersistenceException
Throws:
org.apache.geronimo.timer.PersistenceException

doStop

public void doStop()
            throws org.apache.geronimo.timer.PersistenceException
Throws:
org.apache.geronimo.timer.PersistenceException

createTimer

public javax.ejb.Timer createTimer(Object id,
                                   Date initialExpiration,
                                   long intervalDuration,
                                   Serializable info)
                            throws IllegalArgumentException,
                                   IllegalStateException,
                                   javax.ejb.EJBException
Throws:
IllegalArgumentException
IllegalStateException
javax.ejb.EJBException

createTimer

public javax.ejb.Timer createTimer(Object id,
                                   Date expiration,
                                   Serializable info)
                            throws IllegalArgumentException,
                                   IllegalStateException,
                                   javax.ejb.EJBException
Throws:
IllegalArgumentException
IllegalStateException
javax.ejb.EJBException

createTimer

public javax.ejb.Timer createTimer(Object id,
                                   long initialDuration,
                                   long intervalDuration,
                                   Serializable info)
                            throws IllegalArgumentException,
                                   IllegalStateException,
                                   javax.ejb.EJBException
Throws:
IllegalArgumentException
IllegalStateException
javax.ejb.EJBException

createTimer

public javax.ejb.Timer createTimer(Object id,
                                   long duration,
                                   Serializable info)
                            throws IllegalArgumentException,
                                   IllegalStateException,
                                   javax.ejb.EJBException
Throws:
IllegalArgumentException
IllegalStateException
javax.ejb.EJBException

getTimers

public Collection getTimers(Object id)
                     throws IllegalStateException,
                            javax.ejb.EJBException
Throws:
IllegalStateException
javax.ejb.EJBException


Copyright © 1999-2005 OpenEJB. All Rights Reserved.