public interface ByteBufferPool extends Service
ByteBuffer
instances.
This strategy could just create new buffers for each call or
it could pool them.Modifier and Type | Method and Description |
---|---|
ByteBuffer |
borrowBuffer()
Extract a buffer from the pool.
|
void |
returnBuffer(ByteBuffer buffer)
Returns the buffer to the pool or just discards it for a non-pool strategy
|
void |
setDefaultSize(int defaultSize)
Sets the default size of the buffers
|
ByteBuffer borrowBuffer()
void returnBuffer(ByteBuffer buffer)
void setDefaultSize(int defaultSize)
Copyright © 2005–2016 FuseSource, Corp.. All rights reserved.