org.apache.jcs.auxiliary.remote.server
Class TimeoutConfigurableRMIScoketFactory
java.lang.Object
java.rmi.server.RMISocketFactory
org.apache.jcs.auxiliary.remote.server.TimeoutConfigurableRMIScoketFactory
- All Implemented Interfaces:
- java.io.Serializable, java.rmi.server.RMIClientSocketFactory, java.rmi.server.RMIServerSocketFactory
public class TimeoutConfigurableRMIScoketFactory
- extends java.rmi.server.RMISocketFactory
- implements java.io.Serializable
This can be injected into the the remote cache server as follows:
jcs.remotecache.customrmisocketfactory=org.apache.jcs.auxiliary.remote.server.TimeoutConfigurableRMIScoketFactory
jcs.remotecache.customrmisocketfactory.readTimeout=5000
jcs.remotecache.customrmisocketfactory.openTimeout=5000
- See Also:
- Serialized Form
Methods inherited from class java.rmi.server.RMISocketFactory |
getDefaultSocketFactory, getFailureHandler, getSocketFactory, setFailureHandler, setSocketFactory |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TimeoutConfigurableRMIScoketFactory
public TimeoutConfigurableRMIScoketFactory()
createServerSocket
public java.net.ServerSocket createServerSocket(int port)
throws java.io.IOException
- Specified by:
createServerSocket
in interface java.rmi.server.RMIServerSocketFactory
- Specified by:
createServerSocket
in class java.rmi.server.RMISocketFactory
- Parameters:
port
-
- Returns:
- ServerSocket
- Throws:
java.io.IOException
createSocket
public java.net.Socket createSocket(java.lang.String host,
int port)
throws java.io.IOException
- Specified by:
createSocket
in interface java.rmi.server.RMIClientSocketFactory
- Specified by:
createSocket
in class java.rmi.server.RMISocketFactory
- Parameters:
host
- port
-
- Returns:
- Socket
- Throws:
java.io.IOException
setReadTimeout
public void setReadTimeout(int readTimeout)
- Parameters:
readTimeout
- the readTimeout to set
getReadTimeout
public int getReadTimeout()
- Returns:
- the readTimeout
setOpenTimeout
public void setOpenTimeout(int openTimeout)
- Parameters:
openTimeout
- the openTimeout to set
getOpenTimeout
public int getOpenTimeout()
- Returns:
- the openTimeout
Copyright © 2002-2011 Apache Software Foundation. All Rights Reserved.