org.jboss.net.sockets
Class TimeoutClientSocketFactory
java.lang.Object
org.jboss.net.sockets.TimeoutClientSocketFactory
- All Implemented Interfaces:
- java.rmi.server.RMIClientSocketFactory, java.io.Serializable
- public class TimeoutClientSocketFactory
- extends java.lang.Object
- implements java.rmi.server.RMIClientSocketFactory, java.io.Serializable
A RMIClientSocketFactory that installs a InterruptableInputStream to be
responsive to thead interruption events.
- See Also:
- Serialized Form
Method Summary |
java.net.Socket |
createSocket(java.lang.String host,
int port)
Create a server socket on the specified port (port 0 indicates
an anonymous port). |
boolean |
equals(java.lang.Object obj)
|
int |
hashCode()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
TimeoutClientSocketFactory
public TimeoutClientSocketFactory()
createSocket
public java.net.Socket createSocket(java.lang.String host,
int port)
throws java.io.IOException
- Create a server socket on the specified port (port 0 indicates
an anonymous port).
- Specified by:
createSocket
in interface java.rmi.server.RMIClientSocketFactory
- Parameters:
port
- the port number
- Returns:
- the server socket on the specified port
- Throws:
java.io.IOException
- if an I/O error occurs during server socket
creation- Since:
- 1.2
equals
public boolean equals(java.lang.Object obj)
hashCode
public int hashCode()