saker.rmi Documentation TaskDoc JavaDoc Packages
public final class RMISocketConfiguration
Configuration object specifying how sockets should be handled for RMI connections.

Objects if this class are mutable, and reusable.

saker.rmi 0.8.2
Constructors
public
Creates a new instance with default values.
public
Creates a new instance with values copied from the parameter.
Methods
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(boolean connectionInterruptible)
Sets the interruptability of connection initiations.
public void
setConnectionTimeout(int connectionTimeout)
Sets the timeout for initiating connections in milliseconds.
public void
Sets the socket factory.
Creates a new instance with default values.
Creates a new instance with values copied from the parameter.
copyThe configuration to copy from.
NullPointerExceptionIf the argument is null.
Gets the timeout for initiating connections in milliseconds.

Negative value represents an implementation dependent default value, 0 means infinite timeout, and positive values represent the timeout value in milliseconds.

The timeout.
Gets the socket factory.
The socket factory. May be null.
public boolean isConnectionInterruptible()
Gets if the connection initiation should be interruptible.
true if connection initiation may respond to interrupts.
public void setConnectionInterruptible(boolean connectionInterruptible)
Sets the interruptability of connection initiations.

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.

connectionInterruptibletrue to enable interruption of connecting.
public void setConnectionTimeout(int connectionTimeout)
Sets the timeout for initiating connections in milliseconds.

Negative value represents an implementation dependent default value, 0 means infinite timeout, and positive values represent the timeout value in milliseconds.

connectionTimeoutThe timeout in millseconds.
public void setSocketFactory(SocketFactory socketFactory)
Sets the socket factory.

The specified socket factory will be used to create new sockets. May be set to null to use the default mechanism.

socketFactoryThe socket factory.