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 java.lang.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(java.lang.Object o)
           
 TimerHandle getHandle()
           
 java.io.Serializable getInfo()
           
 java.util.Date getNextTimeout()
           
 ScheduleExpression getSchedule()
           
 SerializableObjectFactory getSerializableObjectFactory()
           
 long getTimeRemaining()
           
 int hashCode()
           
 boolean isCalendarTimer()
           
 boolean isPersistent()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

cancel

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

getTimeRemaining

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

getNextTimeout

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

getInfo

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

getHandle

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

getSchedule

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

isCalendarTimer

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

isPersistent

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

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getSerializableObjectFactory

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


Copyright © 2012 GlassFish Community. All Rights Reserved.