Class BufferPool
java.lang.Object
org.apache.bookkeeper.bookie.storage.directentrylogger.BufferPool
- All Implemented Interfaces:
AutoCloseable
BufferPool used to manage Buffers.
-
Constructor Summary
ConstructorsConstructorDescriptionBufferPool(NativeIO nativeIO, io.netty.buffer.ByteBufAllocator allocator, int bufferSize, int maxPoolSize) -
Method Summary
-
Constructor Details
-
BufferPool
BufferPool(NativeIO nativeIO, io.netty.buffer.ByteBufAllocator allocator, int bufferSize, int maxPoolSize) throws IOException - Throws:
IOException
-
-
Method Details
-
acquire
- Throws:
IOException
-
release
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-