org.jboss.remoting.transport.socket
Class SocketClientPool

java.lang.Object
  extended byorg.jboss.remoting.transport.socket.SocketClientPool

public class SocketClientPool
extends Object

SocketClientPool is a simple pool of client Socket connections back to the remote Socket Server.

Version:
$Revision: 1.5 $
Author:
Jeff Haynie

Method Summary
 void connect()
           
 void disconnect()
           
 int getAvailableCount()
           
 Socket getNextAvailable()
          return the next available Socket object for a given invocation session.
 void makeAvailable(Socket socket)
          return an available Socket that has been used to the pool for some other execution thread to use
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

connect

public void connect()
             throws IOException
Throws:
IOException

getAvailableCount

public int getAvailableCount()

disconnect

public void disconnect()

getNextAvailable

public Socket getNextAvailable()
                        throws IOException
return the next available Socket object for a given invocation session. will automatically allocate a new Socket if none are available.

Returns:
Throws:
IOException

makeAvailable

public void makeAvailable(Socket socket)
return an available Socket that has been used to the pool for some other execution thread to use

Parameters:
socket -


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.