Objects if this class are mutable, and reusable.
public | Creates a new instance with default values. |
public | Creates a new instance with values copied from the parameter. |
public int | Gets the timeout for initiating connections in milliseconds. |
public SocketFactory | Gets the socket factory. |
public boolean | Gets if the connection initiation should be interruptible. |
public void | setConnectionInterruptible( Sets the interruptability of connection initiations. |
public void | setConnectionTimeout( Sets the timeout for initiating connections in milliseconds. |
public void | setSocketFactory( Sets the socket factory. |
null
.Negative value represents an implementation dependent default value, 0 means infinite timeout, and positive values represent the timeout value in milliseconds.
true
if connection initiation may respond to interrupts.
When set to true
, the attempt to initiate connections will be interruptible. This means that if the
thread on which the sockets are being connected is interrupted, the sockets will be closed, and
ClosedByInterruptException will be thrown.
The property only applies to the duration during which the RMI connection is being initiated.
The default value of this property is false
.
true
to enable interruption of connecting.Negative value represents an implementation dependent default value, 0 means infinite timeout, and positive values represent the timeout value in milliseconds.
The specified socket factory will be used to create new sockets. May be set to null
to use the
default mechanism.