public interface BufferPool
| Modifier and Type | Method and Description |
|---|---|
java.nio.ByteBuffer |
get(int capacity)
Fetch a buffer from the pool.
|
void |
release(java.nio.ByteBuffer buffer)
Return a buffer to the pool.
|
java.nio.ByteBuffer get(int capacity)
capacity - the desired size of the buffervoid release(java.nio.ByteBuffer buffer)
buffer - the buffer to return