|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.engine.util.Pool<Connection<T>>
org.restlet.engine.connector.ConnectionPool<T>
public class ConnectionPool<T extends Connector>
A connection pool to prevent to recreation of heavy byte buffers.
Constructor Summary | |
---|---|
ConnectionPool(ConnectionHelper<T> helper,
int initialSize)
Constructor. |
Method Summary | |
---|---|
protected void |
clear(Connection<T> connection)
Clears the given object when it is checked in the pool. |
protected Connection<T> |
createObject()
Creates a new reusable object. |
Methods inherited from class org.restlet.engine.util.Pool |
---|
checkin, checkout, clear, createStore, getStore, preCreate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConnectionPool(ConnectionHelper<T> helper, int initialSize)
helper
- The parent helper.initialSize
- The initial pool size.Method Detail |
---|
protected void clear(Connection<T> connection)
Pool
clear
in class Pool<Connection<T extends Connector>>
connection
- The object to clear.protected Connection<T> createObject()
Pool
createObject
in class Pool<Connection<T extends Connector>>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |