public class BufferManager extends Object implements BufferListener, BufferRecycler
InputChannel to request/recycle exclusive or floating
buffers.BufferRecycler.DummyBufferRecycler| 构造器和说明 |
|---|
BufferManager(org.apache.flink.core.memory.MemorySegmentProvider globalPool,
InputChannel inputChannel,
int numRequiredBuffers) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在接口中 BufferRecyclersegment - The exclusive segment of this channel.public boolean notifyBufferAvailable(Buffer buffer)
notifyBufferAvailable 在接口中 BufferListenerbuffer - Buffer that becomes available in buffer pool.public void notifyBufferDestroyed()
BufferListenernotifyBufferDestroyed 在接口中 BufferListenerCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.