|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ByteBufferPool
Represents a pool of ByteBuffer instances.
This strategy could just create new buffers for each call or
it could pool them.
| Method Summary | |
|---|---|
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 |
| Methods inherited from interface org.apache.activemq.Service |
|---|
start, stop |
| Method Detail |
|---|
ByteBuffer borrowBuffer()
void returnBuffer(ByteBuffer buffer)
void setDefaultSize(int defaultSize)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||