public class TimeoutConfigurableRMISocketFactory extends RMISocketFactory implements Serializable
jcs.remotecache.customrmisocketfactory=org.apache.commons.jcs3.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, setSocketFactorypublic ServerSocket createServerSocket(int port) throws IOException
createServerSocket in interface RMIServerSocketFactorycreateServerSocket in class RMISocketFactoryport - IOExceptionpublic Socket createSocket(String host, int port) throws IOException
createSocket in interface RMIClientSocketFactorycreateSocket in class RMISocketFactoryhost - port - IOExceptionpublic 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–2022 The Apache Software Foundation. All rights reserved.