ch.bind.philib.pool.object
| Constructor and Description |
|---|
ConcurrentPool(ObjectManager<T> manager,
int maxEntries,
boolean softRefs,
int concurrencyLevel) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public ConcurrentPool(ObjectManager<T> manager, int maxEntries, boolean softRefs, int concurrencyLevel)
public void recycle(T value)
Poolpublic PoolStats getPoolStats()
getPoolStats in interface Pool<T>public int getNumPooled()
getNumPooled in interface Pool<T>public void clear()
Poolpublic int getConcurrency()
Copyright © 2014. All Rights Reserved.