public class BufferManager extends Object implements BufferListener, BufferRecycler
InputChannel to request/recycle exclusive or floating
buffers.BufferRecycler.DummyBufferRecycler| Constructor and Description |
|---|
BufferManager(org.apache.flink.core.memory.MemorySegmentProvider globalPool,
InputChannel inputChannel,
int numRequiredBuffers) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
notifyBufferAvailable(Buffer buffer)
The buffer pool notifies this listener of an available floating buffer.
|
void |
notifyBufferDestroyed()
Notification callback if the buffer provider is destroyed.
|
void |
recycle(org.apache.flink.core.memory.MemorySegment segment)
Exclusive buffer is recycled to this channel manager directly and it may trigger return extra
floating buffer based on numRequiredBuffers.
|
public BufferManager(org.apache.flink.core.memory.MemorySegmentProvider globalPool,
InputChannel inputChannel,
int numRequiredBuffers)
public void recycle(org.apache.flink.core.memory.MemorySegment segment)
recycle in interface BufferRecyclersegment - The exclusive segment of this channel.public boolean notifyBufferAvailable(Buffer buffer)
notifyBufferAvailable in interface BufferListenerbuffer - Buffer that becomes available in buffer pool.public void notifyBufferDestroyed()
BufferListenernotifyBufferDestroyed in interface BufferListenerCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.