SCJP Certification

Sun Certified Java Programmer Certification exam essentials

March 9th, 2010

What is the getHandle() method?

Uncategorized, by Daisy Williams.

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.

Share

Back Top

Responses to “What is the getHandle() method?”

Comments (0) Trackbacks (0) Leave a comment Trackback url
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Your email address will not be published. Required fields are marked *

*