org.jboss.net.sockets
Class QueuedClientSocketFactory

java.lang.Object
  extended byorg.jboss.net.sockets.QueuedClientSocketFactory
All Implemented Interfaces:
java.io.Externalizable, java.rmi.server.RMIClientSocketFactory, java.io.Serializable

public class QueuedClientSocketFactory
extends java.lang.Object
implements java.rmi.server.RMIClientSocketFactory, java.io.Externalizable

See Also:
Serialized Form

Constructor Summary
QueuedClientSocketFactory()
           
QueuedClientSocketFactory(long nPermits)
           
 
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()
           
 void readExternal(java.io.ObjectInput in)
           
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueuedClientSocketFactory

public QueuedClientSocketFactory()

QueuedClientSocketFactory

public QueuedClientSocketFactory(long nPermits)
Method Detail

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()

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException