public class BufferPoolConnector extends Object implements BufferRecycler
| Constructor and Description |
|---|
BufferPoolConnector(Queue<MemorySegment> bufferPool)
Constructs a new buffer pool connector
|
| Modifier and Type | Method and Description |
|---|---|
void |
recycle(MemorySegment buffer)
Called by
Buffer to return a MemorySegment to its original buffer pool. |
public BufferPoolConnector(Queue<MemorySegment> bufferPool)
bufferPool - a reference to the memory pool the byte buffer was originally taken frompublic void recycle(MemorySegment buffer)
BufferRecyclerBuffer to return a MemorySegment to its original buffer pool.recycle in interface BufferRecyclerbuffer - the segment to be recycledCopyright © 2015 The Apache Software Foundation. All rights reserved.