se.unlogic.standardutils.rmi
Class TimeoutRMISocketFactory
java.lang.Object
java.rmi.server.RMISocketFactory
se.unlogic.standardutils.rmi.TimeoutRMISocketFactory
- All Implemented Interfaces:
- RMIClientSocketFactory, RMIServerSocketFactory
public class TimeoutRMISocketFactory
- extends RMISocketFactory
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
readTimeout
protected int readTimeout
connectionTimeout
protected int connectionTimeout
TimeoutRMISocketFactory
public TimeoutRMISocketFactory(int readTimeout,
int connectionTimeout)
createSocket
public Socket createSocket(String host,
int port)
throws IOException
- Specified by:
createSocket
in interface RMIClientSocketFactory
- Specified by:
createSocket
in class RMISocketFactory
- Throws:
IOException
createServerSocket
public ServerSocket createServerSocket(int port)
throws IOException
- Specified by:
createServerSocket
in interface RMIServerSocketFactory
- Specified by:
createServerSocket
in class RMISocketFactory
- Throws:
IOException
Copyright © 2011. All Rights Reserved.