Interface BufferPoolFactory
- All Known Implementing Classes:
NetworkBufferPool
public interface BufferPoolFactory
A factory for buffer pools.
-
Method Summary
Modifier and TypeMethodDescriptioncreateBufferPool(int numRequiredBuffers, int maxUsedBuffers) Tries to create a buffer pool, which is guaranteed to provide at least the number of required buffers.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.voiddestroyBufferPool(BufferPool bufferPool) Destroy callback for updating factory book keeping.
-
Method Details
-
createBufferPool
Tries to create a buffer pool, which is guaranteed to provide at least the number of required buffers.The buffer pool is of dynamic size with at least numRequiredBuffers buffers.
- Parameters:
numRequiredBuffers- minimum number of network buffers in this poolmaxUsedBuffers- maximum number of network buffers this pool offers- Throws:
IOException
-
createBufferPool
BufferPool createBufferPool(int numRequiredBuffers, int maxUsedBuffers, int numSubpartitions, int maxBuffersPerChannel, int maxOverdraftBuffersPerGate) throws IOException Tries to create a buffer pool with an owner, which is guaranteed to provide at least the number of required buffers.The buffer pool is of dynamic size with at least numRequiredBuffers buffers.
- Parameters:
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 gate- Throws:
IOException
-
destroyBufferPool
Destroy callback for updating factory book keeping.- Throws:
IOException
-