com.sun.ejb.containers
Class TimerWrapper

java.lang.Object
  extended by com.sun.ejb.containers.TimerWrapper
All Implemented Interfaces:
IndirectlySerializable, Timer

public class TimerWrapper
extends Object
implements Timer, IndirectlySerializable


Nested Class Summary
static class TimerWrapper.SerializedTimerWrapper
          Used by serialization code to serialize a TimerWrapper.
 
Method Summary
 void cancel()
           
 boolean equals(Object o)
           
 TimerHandle getHandle()
           
 Serializable getInfo()
           
 Date getNextTimeout()
           
 ScheduleExpression getSchedule()
           
 SerializableObjectFactory getSerializableObjectFactory()
           
 long getTimeRemaining()
           
 int hashCode()
           
 boolean isCalendarTimer()
           
 boolean isPersistent()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

cancel

public void cancel()
            throws IllegalStateException,
                   NoSuchObjectLocalException,
                   EJBException
Specified by:
cancel in interface Timer
Throws:
IllegalStateException
NoSuchObjectLocalException
EJBException

getTimeRemaining

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

getNextTimeout

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

getInfo

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

getHandle

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

getSchedule

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

isCalendarTimer

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

isPersistent

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

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

getSerializableObjectFactory

public SerializableObjectFactory getSerializableObjectFactory()
Specified by:
getSerializableObjectFactory in interface IndirectlySerializable


Copyright © 2012 GlassFish Community. All Rights Reserved.