org.apache.openejb.core.timer
Class TimerImpl

java.lang.Object
  extended by org.apache.openejb.core.timer.TimerImpl
All Implemented Interfaces:
javax.ejb.Timer

public class TimerImpl
extends java.lang.Object
implements javax.ejb.Timer


Constructor Summary
TimerImpl(TimerData timerData)
           
 
Method Summary
 void cancel()
           
 javax.ejb.TimerHandle getHandle()
           
 java.io.Serializable getInfo()
           
 java.util.Date getNextTimeout()
           
 long getTimeRemaining()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimerImpl

public TimerImpl(TimerData timerData)
Method Detail

cancel

public void cancel()
            throws java.lang.IllegalStateException,
                   javax.ejb.NoSuchObjectLocalException
Specified by:
cancel in interface javax.ejb.Timer
Throws:
java.lang.IllegalStateException
javax.ejb.NoSuchObjectLocalException

getTimeRemaining

public long getTimeRemaining()
                      throws java.lang.IllegalStateException,
                             javax.ejb.NoSuchObjectLocalException
Specified by:
getTimeRemaining in interface javax.ejb.Timer
Throws:
java.lang.IllegalStateException
javax.ejb.NoSuchObjectLocalException

getNextTimeout

public java.util.Date getNextTimeout()
                              throws java.lang.IllegalStateException,
                                     javax.ejb.NoSuchObjectLocalException
Specified by:
getNextTimeout in interface javax.ejb.Timer
Throws:
java.lang.IllegalStateException
javax.ejb.NoSuchObjectLocalException

getInfo

public java.io.Serializable getInfo()
                             throws java.lang.IllegalStateException,
                                    javax.ejb.NoSuchObjectLocalException
Specified by:
getInfo in interface javax.ejb.Timer
Throws:
java.lang.IllegalStateException
javax.ejb.NoSuchObjectLocalException

getHandle

public javax.ejb.TimerHandle getHandle()
                                throws java.lang.IllegalStateException,
                                       javax.ejb.NoSuchObjectLocalException
Specified by:
getHandle in interface javax.ejb.Timer
Throws:
java.lang.IllegalStateException
javax.ejb.NoSuchObjectLocalException


Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.