public interface BufferPoolFactory
Modifier and Type | Method and Description |
---|---|
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,
Optional<BufferPoolOwner> owner)
Tries to create a buffer pool with an optional 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 offersIOException
BufferPool createBufferPool(int numRequiredBuffers, int maxUsedBuffers, Optional<BufferPoolOwner> owner) 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 offersowner
- the optional owner of this buffer pool to release memory when neededIOException
void destroyBufferPool(BufferPool bufferPool) throws IOException
IOException
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.