|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.ehcache.distribution.ConfigurableRMIClientSocketFactory
public final class ConfigurableRMIClientSocketFactory
Default socket timeouts are unlikely to be suitable for cache replication. Sockets should fail fast.
This class decorates the RMIClientSocketFactory so as to enable customisations to be placed on newly created sockets.
Constructor Summary | |
---|---|
ConfigurableRMIClientSocketFactory(java.lang.Integer socketTimeoutMillis)
Construct a new socket factory with the given timeout. |
Method Summary | |
---|---|
java.net.Socket |
createSocket(java.lang.String host,
int port)
Create a client socket connected to the specified host and port. |
boolean |
equals(java.lang.Object object)
The standard hashCode method which is necessary for SocketFactory classes. |
int |
hashCode()
Implements the Object hashCode method. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfigurableRMIClientSocketFactory(java.lang.Integer socketTimeoutMillis)
socketTimeoutMillis
- Socket.setSoTimeout(int)
Method Detail |
---|
public java.net.Socket createSocket(java.lang.String host, int port) throws java.io.IOException
Socket socket = new Socket(host, port, localInterface , 0);
createSocket
in interface java.rmi.server.RMIClientSocketFactory
host
- the host nameport
- the port number
java.io.IOException
- if an I/O error occurs during socket creationpublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
object
- the comparison object
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |