setRequestTimeout method (format 1)
Description
Sets an RMI-IIOP communication timeout. This method generates a copy of the obj parameter and returns an object in which the sec parameter is set as the timeout value. The timeout set by this method is valid for the returned object.
Format
public java.rmi.Remote setRequestTimeout(java.rmi.Remote obj,
int sec)
throws IllegalArgumentException,
IllegalStateException;
Parameters
Exceptions
Return value
This method returns the object that is set with a timeout value.
Caution
When you set a timeout with this method, it takes more time for processing as compared to the time taken to set the timeout by using the setRequestTimeout method (format 2).