org.objectweb.jonas_ejb.container
Class JTimerHandle

java.lang.Object
  extended byorg.objectweb.jonas_ejb.container.JTimerHandle
All Implemented Interfaces:
java.io.Serializable, javax.ejb.TimerHandle

public class JTimerHandle
extends java.lang.Object
implements javax.ejb.TimerHandle

TimerHandle implementation

See Also:
Serialized Form

Constructor Summary
JTimerHandle(long starttime, long duration, long period, java.io.Serializable info, java.lang.String beanname, java.lang.String container, java.io.Serializable pk)
          Constructor
 
Method Summary
 javax.ejb.Timer getTimer()
           
 javax.ejb.Timer restartTimer()
          Restart a Timer read from disk (persistent timer)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JTimerHandle

public JTimerHandle(long starttime,
                    long duration,
                    long period,
                    java.io.Serializable info,
                    java.lang.String beanname,
                    java.lang.String container,
                    java.io.Serializable pk)
Constructor

Method Detail

getTimer

public javax.ejb.Timer getTimer()
                         throws java.lang.IllegalStateException,
                                javax.ejb.NoSuchObjectLocalException,
                                javax.ejb.EJBException
Specified by:
getTimer in interface javax.ejb.TimerHandle
Returns:
a reference to the timer represented by this handle.
Throws:
java.lang.IllegalStateException - If this method is invoked while the instance is in a state that does not allow access to this method.
javax.ejb.NoSuchObjectLocalException - If invoked on a handle whose associated timer has expired or has been cancelled.
javax.ejb.EJBException - If this method could not complete due to a system-level failure.

restartTimer

public javax.ejb.Timer restartTimer()
                             throws java.lang.IllegalStateException,
                                    javax.ejb.NoSuchObjectLocalException,
                                    javax.ejb.EJBException
Restart a Timer read from disk (persistent timer)

Returns:
Throws:
java.lang.IllegalStateException
javax.ejb.NoSuchObjectLocalException
javax.ejb.EJBException