|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.knowledgeplaza.util.pool.BaseObjectPool<T>
nl.knowledgeplaza.util.pool.RoundRobinObjectPool<T>
public class RoundRobinObjectPool<T>
This class implements a round robin (FIFO) pool.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class nl.knowledgeplaza.util.pool.BaseObjectPool |
|---|
BaseObjectPool.NotFromThisPoolException, BaseObjectPool.TimeOutException |
| Field Summary | |
|---|---|
protected List<T> |
iListOfPooledObjects
the storage |
static String |
SOURCECODE_VERSION
Standard variable for determining version of a class file. |
| Fields inherited from class nl.knowledgeplaza.util.pool.BaseObjectPool |
|---|
iClose, iListOfHandedOutObjects, iListOfHandedOutObjectsSync, iShuttingDown, iSynchronized, itestOnBorrow, WHEN_EXHAUSTED_BLOCK, WHEN_EXHAUSTED_FAIL |
| Constructor Summary | |
|---|---|
RoundRobinObjectPool()
Initialize |
|
RoundRobinObjectPool(Collection collection)
Initialize |
|
RoundRobinObjectPool(PoolableObjectFactory poolableObjectFactory)
Initialize |
|
| Method Summary | |
|---|---|
protected Collection<T> |
getPooledObjectsImpl()
this method allows read only access to the collection of handed out objects, used by the generic algorithm |
protected T |
obtainPooledObjectImpl()
this method obtains a pooled object, the implementation determines the behaviour (LIFO, FIFO, etc) |
protected void |
returnPooledObjectImpl(T o)
this method returns a pooled object, the implementation determines the behaviour (LIFO, FIFO, etc) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface nl.knowledgeplaza.util.pool.ObjectPool |
|---|
addObject, borrowObject, clear, close, getNumActive, getNumIdle, invalidateObject, isSynchronized, returnObject, setFactory, setSynchronized, shutdown |
| Field Detail |
|---|
public static final String SOURCECODE_VERSION
protected List<T> iListOfPooledObjects
| Constructor Detail |
|---|
public RoundRobinObjectPool()
public RoundRobinObjectPool(PoolableObjectFactory poolableObjectFactory)
public RoundRobinObjectPool(Collection collection)
| Method Detail |
|---|
protected Collection<T> getPooledObjectsImpl()
BaseObjectPool
getPooledObjectsImpl in class BaseObjectPool<T>protected T obtainPooledObjectImpl()
BaseObjectPool
obtainPooledObjectImpl in class BaseObjectPool<T>protected void returnPooledObjectImpl(T o)
BaseObjectPool
returnPooledObjectImpl in class BaseObjectPool<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||