|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.bind.philib.pool.buffer.ByteBufferPool
public final class ByteBufferPool
TODO
| Constructor Summary | |
|---|---|
ByteBufferPool(Pool<ByteBuffer> backend)
|
|
| Method Summary | |
|---|---|
void |
clear()
instructs the pool to destroy all pooled objects. |
static ByteBufferPool |
create(int bufferSize,
int maxEntries)
|
static ByteBufferPool |
create(int bufferSize,
int maxEntries,
int concurrencyLevel)
|
int |
getNumPooled()
|
PoolStats |
getPoolStats()
|
void |
recycle(ByteBuffer value)
Recycles an object which might be reused. |
ByteBuffer |
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 ByteBufferPool(Pool<ByteBuffer> backend)
| Method Detail |
|---|
public final ByteBuffer take()
Pool
take in interface Pool<ByteBuffer>public final void recycle(ByteBuffer value)
Pool
recycle in interface Pool<ByteBuffer>value - The object to be recycled.public final PoolStats getPoolStats()
getPoolStats in interface Pool<ByteBuffer>public int getNumPooled()
getNumPooled in interface Pool<ByteBuffer>public void clear()
Pool
clear in interface Pool<ByteBuffer>
public static ByteBufferPool create(int bufferSize,
int maxEntries)
public static ByteBufferPool create(int bufferSize,
int maxEntries,
int concurrencyLevel)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||