org.apache.activemq.transport.udp
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 |
---|---|
java.nio.ByteBuffer |
borrowBuffer()
Extract a buffer from the pool.
|
void |
returnBuffer(java.nio.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
|
java.nio.ByteBuffer borrowBuffer()
void returnBuffer(java.nio.ByteBuffer buffer)
void setDefaultSize(int defaultSize)
Copyright © 2005-2014. All Rights Reserved.