public class TimeoutConfigurableRMISocketFactory extends RMISocketFactory implements Serializable
jcs.remotecache.customrmisocketfactory=org.apache.commons.jcs.auxiliary.remote.server.TimeoutConfigurableRMISocketFactory jcs.remotecache.customrmisocketfactory.readTimeout=5000 jcs.remotecache.customrmisocketfactory.openTimeout=5000
Constructor and Description |
---|
TimeoutConfigurableRMISocketFactory() |
Modifier and Type | Method and Description |
---|---|
ServerSocket |
createServerSocket(int port) |
Socket |
createSocket(String host,
int port) |
int |
getOpenTimeout() |
int |
getReadTimeout() |
void |
setOpenTimeout(int openTimeout) |
void |
setReadTimeout(int readTimeout) |
getDefaultSocketFactory, getFailureHandler, getSocketFactory, setFailureHandler, setSocketFactory
public TimeoutConfigurableRMISocketFactory()
public ServerSocket createServerSocket(int port) throws IOException
createServerSocket
in interface RMIServerSocketFactory
createServerSocket
in class RMISocketFactory
port
- IOException
public Socket createSocket(String host, int port) throws IOException
createSocket
in interface RMIClientSocketFactory
createSocket
in class RMISocketFactory
host
- port
- IOException
public void setReadTimeout(int readTimeout)
readTimeout
- the readTimeout to setpublic int getReadTimeout()
public void setOpenTimeout(int openTimeout)
openTimeout
- the openTimeout to setpublic int getOpenTimeout()
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.