|
|||||||||||
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 Parameterpublic BasicObjectPool(PoolableObjectFactory inFactory, int inMaxSize)
inFactory
- TODO: Describe the ParameterinMaxSize
- TODO: Describe the ParameterMethod Detail |
public java.lang.Object borrowObject()
borrowObject
in interface ObjectPool
public java.lang.Object borrowObjectIfExists()
borrowObjectIfExists
in interface ObjectPool
public void returnObject(java.lang.Object object)
returnObject
in interface ObjectPool
object
- A previously borrowed instance.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |