|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The Timer interface contains information about a timer that was created through the EJB Timer Service
Method Summary | |
void |
cancel()
Cause the timer and all its associated expiration notifications to be cancelled. |
TimerHandle (src) |
getHandle()
Get a serializable handle to the timer. |
java.io.Serializable |
getInfo()
Get the information associated with the timer at the time of creation. |
java.util.Date |
getNextTimeout()
Get the point in time at which the next timer expiration is scheduled to occur. |
long |
getTimeRemaining()
Get the number of milliseconds that will elapse before the next scheduled timer expiration. |
Method Detail |
public void cancel() throws java.lang.IllegalStateException, NoSuchObjectLocalException (src) , EJBException (src)
java.lang.IllegalStateException
- If this method is invoked while the instance is in
a state that does not allow access to this method.
NoSuchObjectLocalException (src)
- If invoked on a timer that has expired or has been cancelled.
EJBException (src)
- If this method could not complete due to a system-level failure.public long getTimeRemaining() throws java.lang.IllegalStateException, NoSuchObjectLocalException (src) , EJBException (src)
java.lang.IllegalStateException
- If this method is invoked while the instance is in
a state that does not allow access to this method.
NoSuchObjectLocalException (src)
- If invoked on a timer that has expired or has been cancelled.
EJBException (src)
- If this method could not complete due to a system-level failure.public java.util.Date getNextTimeout() throws java.lang.IllegalStateException, NoSuchObjectLocalException (src) , EJBException (src)
java.lang.IllegalStateException
- If this method is invoked while the instance is in
a state that does not allow access to this method.
NoSuchObjectLocalException (src)
- If invoked on a timer that has expired or has been cancelled.
EJBException (src)
- If this method could not complete due to a system-level failure.public java.io.Serializable getInfo() throws java.lang.IllegalStateException, NoSuchObjectLocalException (src) , EJBException (src)
java.lang.IllegalStateException
- If this method is invoked while the instance is in
a state that does not allow access to this method.
NoSuchObjectLocalException (src)
- If invoked on a timer that has expired or has been cancelled.
EJBException (src)
- If this method could not complete due to a system-level failure.public TimerHandle (src) getHandle() throws java.lang.IllegalStateException, NoSuchObjectLocalException (src) , EJBException (src)
java.lang.IllegalStateException
- If this method is invoked while the instance is in
a state that does not allow access to this method.
NoSuchObjectLocalException (src)
- If invoked on a timer that has expired or has been cancelled.
EJBException (src)
- If this method could not complete due to a system-level failure.
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |