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