twcsckernel.projectbase.rmi.socketfactory
Class SocketPool

java.lang.Object
  extended by twcsckernel.projectbase.rmi.socketfactory.SocketPool

public class SocketPool
extends java.lang.Object

Provides a simple producer/consumer pool of sockets.

Author:
Tim Taylor -- tttaylor@cssassociates.com

Constructor Summary
SocketPool()
           
 
Method Summary
 void addSocket(java.net.Socket socket)
           
 java.net.Socket getSocket()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocketPool

public SocketPool()
Method Detail

getSocket

public java.net.Socket getSocket()
                          throws java.io.InterruptedIOException
Throws:
java.io.InterruptedIOException

addSocket

public void addSocket(java.net.Socket socket)


Copyright © 2005-2006 CS@PUT. All Rights Reserved.