| java.lang.Object winstone.ObjectPool
ObjectPool | public class ObjectPool implements Runnable(Code) | | Holds the object pooling code for Winstone. Presently this is only responses
and requests, but may increase.
author: Rick Knowles version: $Id: ObjectPool.java,v 1.9 2006/11/18 14:56:59 rickknowles Exp $ |
ObjectPool | public ObjectPool(Map args) throws IOException(Code) | | Constructs an instance of the object pool, including handlers, requests
and responses
|
destroy | public void destroy()(Code) | | |
handleRequest | public void handleRequest(Socket socket, Listener listener) throws IOException, InterruptedException(Code) | | Once the socket request comes in, this method is called. It reserves a
request handler, then delegates the socket to that class. When it
finishes, the handler is released back into the pool.
|
|
|