|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.v3x.data.ObjectPool
public abstract class ObjectPool
A pool for generic reuseable objects.
| Constructor Summary | |
|---|---|
ObjectPool()
|
|
ObjectPool(int poolSize)
|
|
| Method Summary | |
|---|---|
abstract java.lang.Object |
allocateObject()
|
java.lang.Object |
catchObject()
Grabs an object from the pool; allocates if necessary. |
int |
getNumberOfObjects()
Gets the current pool size. |
int |
getPoolSize()
Maximum number of objects pooled. |
void |
releaseObject(java.lang.Object usedUpObject)
Releases a object back to the pool. |
void |
setPoolSize(int newMax)
Set maximum number of objects in pool. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ObjectPool(int poolSize)
public ObjectPool()
| Method Detail |
|---|
public int getPoolSize()
public void setPoolSize(int newMax)
public int getNumberOfObjects()
public abstract java.lang.Object allocateObject()
public java.lang.Object catchObject()
public void releaseObject(java.lang.Object usedUpObject)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||