org.apache.openejb.core.timer
Class TimerImpl

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

public class TimerImpl
extends Object
implements javax.ejb.Timer, Serializable

See Also:
Serialized Form

Constructor Summary
TimerImpl(TimerData timerData)
           
 
Method Summary
 void cancel()
           
 javax.ejb.TimerHandle getHandle()
           
 Serializable getInfo()
           
 Date getNextTimeout()
           
 javax.ejb.ScheduleExpression getSchedule()
           
 long getTimeRemaining()
           
 boolean isCalendarTimer()
           
 boolean isPersistent()
           
 
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 IllegalStateException,
                   javax.ejb.NoSuchObjectLocalException
Specified by:
cancel in interface javax.ejb.Timer
Throws:
IllegalStateException
javax.ejb.NoSuchObjectLocalException

getTimeRemaining

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

getNextTimeout

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

getInfo

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

getHandle

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

getSchedule

public javax.ejb.ScheduleExpression getSchedule()
                                         throws javax.ejb.EJBException,
                                                IllegalStateException,
                                                javax.ejb.NoSuchObjectLocalException
Specified by:
getSchedule in interface javax.ejb.Timer
Throws:
javax.ejb.EJBException
IllegalStateException
javax.ejb.NoSuchObjectLocalException

isPersistent

public boolean isPersistent()
                     throws javax.ejb.EJBException,
                            IllegalStateException,
                            javax.ejb.NoSuchObjectLocalException
Specified by:
isPersistent in interface javax.ejb.Timer
Throws:
javax.ejb.EJBException
IllegalStateException
javax.ejb.NoSuchObjectLocalException

isCalendarTimer

public boolean isCalendarTimer()
                        throws javax.ejb.EJBException,
                               IllegalStateException,
                               javax.ejb.NoSuchObjectLocalException
Specified by:
isCalendarTimer in interface javax.ejb.Timer
Throws:
javax.ejb.EJBException
IllegalStateException
javax.ejb.NoSuchObjectLocalException


Copyright © 1999–2015 The Apache Software Foundation. All rights reserved.