|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.scopemvc.util.BasicObjectPool
Pools objects given a factory and optional maximum pool size.
| Constructor Summary | |
BasicObjectPool(PoolableObjectFactory inFactory)
Construct a basic object pool with the specified factory and a maximum pool size of Integer.MAX_VALUE. |
|
BasicObjectPool(PoolableObjectFactory inFactory,
int inMaxSize)
Construct a basic object pool with the specified factory and maximum pool size. |
|
| Method Summary | |
java.lang.Object |
borrowObject()
Obtains an instance of the pooled class. |
java.lang.Object |
borrowObjectIfExists()
Obtains an instance of the pooled class. |
void |
returnObject(java.lang.Object object)
Returns an instance to the pool. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BasicObjectPool(PoolableObjectFactory inFactory)
inFactory - TODO: Describe the Parameter
public BasicObjectPool(PoolableObjectFactory inFactory,
int inMaxSize)
inFactory - TODO: Describe the ParameterinMaxSize - TODO: Describe the Parameter| Method Detail |
public java.lang.Object borrowObject()
borrowObject in interface ObjectPoolpublic java.lang.Object borrowObjectIfExists()
borrowObjectIfExists in interface ObjectPoolpublic void returnObject(java.lang.Object object)
returnObject in interface ObjectPoolobject - A previously borrowed instance.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||