org.ow2.jonas.lib.ejb21
Class JTimerHandle

java.lang.Object
  extended by org.ow2.jonas.lib.ejb21.JTimerHandle
All Implemented Interfaces:
Serializable, TimerHandle

public class JTimerHandle
extends Object
implements TimerHandle

TimerHandle implementation

See Also:
Serialized Form

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

Constructor Detail

JTimerHandle

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

Method Detail

getTimer

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

restartTimer

public Timer restartTimer()
                   throws IllegalStateException,
                          NoSuchObjectLocalException,
                          EJBException
Restart a Timer read from disk (persistent timer)

Returns:
Throws:
IllegalStateException
NoSuchObjectLocalException
EJBException

equals

public boolean equals(Object obj)
Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Overrides:
hashCode in class Object
See Also:
Object.hashCode()


Copyright © 2010 OW2 Consortium. All Rights Reserved.