ch.bind.philib.pool.object
Class StrongRefPool<T>

java.lang.Object
  extended by ch.bind.philib.pool.object.PoolBase<T>
      extended by ch.bind.philib.pool.object.StrongRefPool<T>
All Implemented Interfaces:
Pool<T>

public final class StrongRefPool<T>
extends PoolBase<T>


Constructor Summary
StrongRefPool(ObjectManager<T> manager, int maxEntries)
           
 
Method Summary
 int getNumPooled()
           
protected  boolean offer(T value)
           
protected  T poll()
           
 
Methods inherited from class ch.bind.philib.pool.object.PoolBase
clear, getPoolStats, recycle, take
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StrongRefPool

public StrongRefPool(ObjectManager<T> manager,
                     int maxEntries)
Method Detail

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.