|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - The type of object which are managed by this pool.public interface Pool<T>
The base interface for object pools.
| Method Summary | |
|---|---|
void |
clear()
instructs the pool to destroy all pooled objects. |
int |
getNumPooled()
|
PoolStats |
getPoolStats()
|
void |
recycle(T value)
Recycles an object which might be reused. |
T |
take()
Take an object from the object-pool. |
| Method Detail |
|---|
T take()
void recycle(T value)
value - The object to be recycled.PoolStats getPoolStats()
int getNumPooled()
void clear()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||