public class SmartRMISocketFactory extends java.rmi.server.RMISocketFactory
RMISocketFactory
that adjusts flags on the sockets used. One is
that for the server socket the reuse flag is set, which allows fast
reopening. Second, an optional timeout can be set.Constructor and Description |
---|
SmartRMISocketFactory()
Constructor.
|
SmartRMISocketFactory(int timeoutSeconds)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.net.ServerSocket |
createServerSocket(int port) |
java.net.Socket |
createSocket(java.lang.String host,
int port) |
public SmartRMISocketFactory()
public SmartRMISocketFactory(int timeoutSeconds)
public java.net.Socket createSocket(java.lang.String host, int port) throws java.io.IOException
createSocket
in interface java.rmi.server.RMIClientSocketFactory
createSocket
in class java.rmi.server.RMISocketFactory
java.io.IOException
public java.net.ServerSocket createServerSocket(int port) throws java.io.IOException
createServerSocket
in interface java.rmi.server.RMIServerSocketFactory
createServerSocket
in class java.rmi.server.RMISocketFactory
java.io.IOException