org.openejb.timer
Class BasicTimerServiceImpl
java.lang.Object
org.openejb.timer.BasicTimerServiceImpl
- All Implemented Interfaces:
- BasicTimerService
- public class BasicTimerServiceImpl
- extends Object
- implements BasicTimerService
- Version:
- $Revision: 445818 $ $Date: 2005-12-04 03:37:53 +0100 (Sun, 04 Dec 2005) $
Constructor Summary |
BasicTimerServiceImpl(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,
ClassLoader classLoader)
|
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()
|
TimerImpl |
getTimerById(Long id)
|
Collection |
getTimers(Object id)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicTimerServiceImpl
public BasicTimerServiceImpl(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,
ClassLoader classLoader)
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
- Specified by:
createTimer
in interface BasicTimerService
- Throws:
IllegalArgumentException
IllegalStateException
javax.ejb.EJBException
createTimer
public javax.ejb.Timer createTimer(Object id,
Date expiration,
Serializable info)
throws IllegalArgumentException,
IllegalStateException,
javax.ejb.EJBException
- Specified by:
createTimer
in interface BasicTimerService
- 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
- Specified by:
createTimer
in interface BasicTimerService
- Throws:
IllegalArgumentException
IllegalStateException
javax.ejb.EJBException
createTimer
public javax.ejb.Timer createTimer(Object id,
long duration,
Serializable info)
throws IllegalArgumentException,
IllegalStateException,
javax.ejb.EJBException
- Specified by:
createTimer
in interface BasicTimerService
- Throws:
IllegalArgumentException
IllegalStateException
javax.ejb.EJBException
getTimers
public Collection getTimers(Object id)
throws IllegalStateException,
javax.ejb.EJBException
- Specified by:
getTimers
in interface BasicTimerService
- Throws:
IllegalStateException
javax.ejb.EJBException
getTimerById
public TimerImpl getTimerById(Long id)
- Specified by:
getTimerById
in interface BasicTimerService
Copyright © 1999-2006 OpenEJB. All Rights Reserved.