ch.bind.philib.pool.object
Class StrongRefPool<T>
java.lang.Object
ch.bind.philib.pool.object.PoolBase<T>
ch.bind.philib.pool.object.StrongRefPool<T>
- All Implemented Interfaces:
- Pool<T>
public final class StrongRefPool<T>
- extends PoolBase<T>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StrongRefPool
public StrongRefPool(ObjectManager<T> manager,
int maxEntries)
poll
protected T poll()
- Specified by:
poll in class PoolBase<T>
offer
protected boolean offer(T value)
- Specified by:
offer in class PoolBase<T>
getNumPooled
public int getNumPooled()
- Returns:
- The number of currently pooled objects.
Copyright © 2013. All Rights Reserved.