The getHandle() method is used to obtain a serializable handle to the timer. The handle belongs to the TimerHandle interface and can be used later to re-obtain the timer reference. The general form of this method is as follows:
public TimerHandle getHandle() throws java.lang.IllegalStateException, NoSuchObjectLocalException, EJBException
This method returns a serializable handle to the timer. It will throw the java.lang.IllegalStateException if this method is invoked while the instance is in a state that does not allow access to this method. It will throw the NoSuchObjectLocalException if invoked on a timer that has expired or cancelled. It will throw the EJBException if this method could not complete due to a system-level failure.
Responses to “What is the getHandle() method?”