ch.bind.philib.pool
T - The type of object which are managed by this pool.public interface Pool<T>
| Modifier and Type | Method and Description |
|---|---|
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.
|
T take()
void recycle(T value)
value - The object to be recycled.PoolStats getPoolStats()
int getNumPooled()
void clear()
Copyright © 2014. All Rights Reserved.