org.openejb.timer
Class TimerImpl
java.lang.Object
org.openejb.timer.TimerImpl
- All Implemented Interfaces:
- javax.ejb.Timer
- public class TimerImpl
- extends Object
- implements javax.ejb.Timer
TODO keep track of state so after single-shot firing nothing works.
- Version:
- $Revision: 1.2 $ $Date: 2004/07/20 23:40:03 $
Constructor Summary |
TimerImpl(org.apache.geronimo.timer.WorkInfo workInfo,
BasicTimerService timerService,
String kernelName,
javax.management.ObjectName timerSourceName)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TimerImpl
public TimerImpl(org.apache.geronimo.timer.WorkInfo workInfo,
BasicTimerService timerService,
String kernelName,
javax.management.ObjectName timerSourceName)
cancel
public void cancel()
throws javax.ejb.EJBException,
IllegalStateException,
javax.ejb.NoSuchObjectLocalException
- Specified by:
cancel
in interface javax.ejb.Timer
- Throws:
javax.ejb.EJBException
IllegalStateException
javax.ejb.NoSuchObjectLocalException
getTimeRemaining
public long getTimeRemaining()
throws javax.ejb.EJBException,
IllegalStateException,
javax.ejb.NoSuchObjectLocalException
- Specified by:
getTimeRemaining
in interface javax.ejb.Timer
- Throws:
javax.ejb.EJBException
IllegalStateException
javax.ejb.NoSuchObjectLocalException
getNextTimeout
public Date getNextTimeout()
throws javax.ejb.EJBException,
IllegalStateException,
javax.ejb.NoSuchObjectLocalException
- Specified by:
getNextTimeout
in interface javax.ejb.Timer
- Throws:
javax.ejb.EJBException
IllegalStateException
javax.ejb.NoSuchObjectLocalException
getInfo
public Serializable getInfo()
throws javax.ejb.EJBException,
IllegalStateException,
javax.ejb.NoSuchObjectLocalException
- Specified by:
getInfo
in interface javax.ejb.Timer
- Throws:
javax.ejb.EJBException
IllegalStateException
javax.ejb.NoSuchObjectLocalException
getHandle
public javax.ejb.TimerHandle getHandle()
throws javax.ejb.EJBException,
IllegalStateException,
javax.ejb.NoSuchObjectLocalException
- Specified by:
getHandle
in interface javax.ejb.Timer
- Throws:
javax.ejb.EJBException
IllegalStateException
javax.ejb.NoSuchObjectLocalException
Copyright © 1999-2005 OpenEJB. All Rights Reserved.