public interface BufferPoolFactory
| 限定符和类型 | 方法和说明 |
|---|---|
BufferPool |
createBufferPool(int numRequiredBuffers,
int maxUsedBuffers)
Tries to create a buffer pool, which is guaranteed to provide at least the number of required
buffers.
|
BufferPool |
createBufferPool(int numRequiredBuffers,
int maxUsedBuffers,
int numSubpartitions,
int maxBuffersPerChannel,
int maxOverdraftBuffersPerGate)
Tries to create a buffer pool with an owner, which is guaranteed to provide at least the
number of required buffers.
|
void |
destroyBufferPool(BufferPool bufferPool)
Destroy callback for updating factory book keeping.
|
BufferPool createBufferPool(int numRequiredBuffers, int maxUsedBuffers) throws IOException
The buffer pool is of dynamic size with at least numRequiredBuffers buffers.
numRequiredBuffers - minimum number of network buffers in this poolmaxUsedBuffers - maximum number of network buffers this pool offersIOExceptionBufferPool createBufferPool(int numRequiredBuffers, int maxUsedBuffers, int numSubpartitions, int maxBuffersPerChannel, int maxOverdraftBuffersPerGate) throws IOException
The buffer pool is of dynamic size with at least numRequiredBuffers buffers.
numRequiredBuffers - minimum number of network buffers in this poolmaxUsedBuffers - maximum number of network buffers this pool offersnumSubpartitions - number of subpartitions in this poolmaxBuffersPerChannel - maximum number of buffers to use for each channelmaxOverdraftBuffersPerGate - maximum number of overdraft buffers to use for each gateIOExceptionvoid destroyBufferPool(BufferPool bufferPool) throws IOException
IOExceptionCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.