]
The Timer interface contains information about a timer that was created
through the EJB Timer Service
Method from javax.ejb.Timer Detail: |
public void cancel() throws IllegalStateException, NoSuchObjectLocalException, EJBException
Cause the timer and all its associated expiration notifications to be cancelled. |
public TimerHandle getHandle() throws IllegalStateException, NoSuchObjectLocalException, EJBException
Get a serializable handle to the timer. This handle can be used at a later time to
re-obtain the timer reference. |
public Serializable getInfo() throws IllegalStateException, NoSuchObjectLocalException, EJBException
Get the information associated with the timer at the time of creation. |
public Date getNextTimeout() throws IllegalStateException, NoSuchObjectLocalException, EJBException
Get the point in time at which the next timer expiration is scheduled to occur. |
public long getTimeRemaining() throws IllegalStateException, NoSuchObjectLocalException, EJBException
Get the number of milliseconds that will elapse before the next scheduled timer expiration. |