public interface BufferPool
| Modifier and Type | Method and Description |
|---|---|
java.nio.ByteBuffer |
allocBuffer(int minSize)
Returns an empty buffer with at least minSize capacity.
|
java.nio.ByteBuffer |
allocBufferChunk()
Returns an empty buffer with chunkSize capacity.
|
int |
getChunkSize() |
int |
getNumChunks() |
void |
printAllocated()
Print a list of buffers currently allocated.
|
void |
returnBuffer(java.nio.ByteBuffer inBuffer)
Return a buffer to the buffer pool.
|
int getChunkSize()
int getNumChunks()
java.nio.ByteBuffer allocBuffer(int minSize)
minSize - - The minimum size of the returned buffer.java.nio.ByteBuffer allocBufferChunk()
minSize - - The minimum size of the returned buffer.void returnBuffer(java.nio.ByteBuffer inBuffer)
inBuffer - - The buffer to return to the pool.void printAllocated()