|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.bind.philib.pool.object.ConcurrentPool<T>
public final class ConcurrentPool<T>
TODO
| Constructor Summary | |
|---|---|
ConcurrentPool(ObjectManager<T> manager,
int maxEntries,
boolean softRefs,
int concurrencyLevel)
|
|
| Method Summary | |
|---|---|
void |
clear()
instructs the pool to destroy all pooled objects. |
int |
getConcurrency()
|
int |
getNumPooled()
|
PoolStats |
getPoolStats()
|
void |
recycle(T value)
Recycles an object which might be reused. |
T |
take()
Take an object from the object-pool. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConcurrentPool(ObjectManager<T> manager,
int maxEntries,
boolean softRefs,
int concurrencyLevel)
| Method Detail |
|---|
public T take()
Pool
take in interface Pool<T>public void recycle(T value)
Pool
recycle in interface Pool<T>value - The object to be recycled.public PoolStats getPoolStats()
getPoolStats in interface Pool<T>public int getNumPooled()
getNumPooled in interface Pool<T>public void clear()
Pool
clear in interface Pool<T>public int getConcurrency()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||