ch.bind.philib.pool.buffer
| Constructor and Description |
|---|
ByteArrayPool(Pool<byte[]> backend) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public ByteArrayPool(Pool<byte[]> backend)
public final byte[] take()
Poolpublic final void recycle(byte[] value)
Poolpublic final PoolStats getPoolStats()
getPoolStats in interface Pool<byte[]>public int getNumPooled()
getNumPooled in interface Pool<byte[]>public void clear()
Poolpublic static ByteArrayPool create(int bufferSize, int maxEntries)
public static ByteArrayPool create(int bufferSize, int maxEntries, int concurrencyLevel)
Copyright © 2014. All Rights Reserved.