| |
|
| java.lang.Object org.quickserver.util.pool.BasicObjectPool
BasicObjectPool | public class BasicObjectPool implements QSObjectPool(Code) | | This class will maintain a simple pool of object instances.
It internally used a HashSet
author: Akshathkumar Shetty since: 1.3 |
Inner Class :public static class Config | |
BasicObjectPool | public BasicObjectPool()(Code) | | |
clear | public synchronized void clear()(Code) | | Clears any objects sitting idle in the pool
|
close | public void close() throws Exception(Code) | | Close this pool, and free any resources associated with it.
|
getAllActiveObjects | public Iterator getAllActiveObjects()(Code) | | Returns the iterator of all active objects
since: 1.3.1 |
getNumActive | public int getNumActive()(Code) | | Return the number of instances currently borrowed from my pool
|
getNumIdle | public int getNumIdle()(Code) | | Return the number of instances currently idle in my pool
|
getObjectToSynchronize | public Object getObjectToSynchronize()(Code) | | |
invalidateObject | public void invalidateObject(Object obj) throws Exception(Code) | | Invalidates an object from the pool
|
returnObject | public synchronized void returnObject(Object obj) throws Exception(Code) | | Return an instance to my pool
|
setFactory | public void setFactory(PoolableObjectFactory factory)(Code) | | Sets the factory I use to create new instances
|
|
|
|