|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwinstone.ObjectPool
public class ObjectPool
Holds the object pooling code for Winstone. Presently this is only responses and requests, but may increase.
Constructor Summary | |
---|---|
ObjectPool(java.util.Map args)
Constructs an instance of the object pool, including handlers, requests and responses |
Method Summary | |
---|---|
void |
destroy()
|
WinstoneRequest |
getRequestFromPool()
An attempt at pooling request objects for reuse. |
WinstoneResponse |
getResponseFromPool()
An attempt at pooling request objects for reuse. |
void |
handleRequest(java.net.Socket socket,
Listener listener)
Once the socket request comes in, this method is called. |
void |
releaseRequestToPool(WinstoneRequest req)
|
void |
releaseResponseToPool(WinstoneResponse rsp)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ObjectPool(java.util.Map args) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public void destroy()
public void handleRequest(java.net.Socket socket, Listener listener) throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
public WinstoneRequest getRequestFromPool() throws java.io.IOException
java.io.IOException
public void releaseRequestToPool(WinstoneRequest req)
public WinstoneResponse getResponseFromPool()
public void releaseResponseToPool(WinstoneResponse rsp)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |