net.sf.ehcache.distribution
public final class ConfigurableRMIClientSocketFactory extends Object implements Serializable, RMIClientSocketFactory
Version: $Id: ConfigurableRMIClientSocketFactory.java 52 2006-04-24 14:50:03Z gregluck $
See Also: "http://java.sun.com/j2se/1.5.0/docs/guide/rmi/socketfactory/#1"
UNKNOWN: SerializableHasSerializationMethods,SerializableHasSerializationMethods
Constructor Summary | |
---|---|
ConfigurableRMIClientSocketFactory(Integer socketTimeoutMillis)
Construct a new socket factory with the given timeout.
|
Method Summary | |
---|---|
Socket | createSocket(String host, int port)
Create a client socket connected to the specified host and port.
|
boolean | equals(Object object)
The standard hashCode method which is necessary for SocketFactory classes.
|
int | hashCode()
Implements the Object hashCode method.
|
Parameters: socketTimeoutMillis
See Also: Socket#setSoTimeout
Socket socket = new Socket(host, port, localInterface , 0);
Parameters: host the host name port the port number
Returns: a socket connected to the specified host and port.
Throws: java.io.IOException if an I/O error occurs during socket creation
Since: 1.2
Parameters: object the comparison object
Returns: equal if the classes are the same and the socket options are the name.
Returns: a hash based on socket options