Class BufferPool

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class BufferPool
    extends java.lang.Object
    implements java.lang.AutoCloseable
    BufferPool used to manage Buffers.
    • Constructor Summary

      Constructors 
      Constructor Description
      BufferPool​(NativeIO nativeIO, io.netty.buffer.ByteBufAllocator allocator, int bufferSize, int maxPoolSize)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) Buffer acquire()  
      void close()  
      (package private) void release​(Buffer buffer)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BufferPool

        BufferPool​(NativeIO nativeIO,
                   io.netty.buffer.ByteBufAllocator allocator,
                   int bufferSize,
                   int maxPoolSize)
            throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • acquire

        Buffer acquire()
                throws java.io.IOException
        Throws:
        java.io.IOException
      • release

        void release​(Buffer buffer)
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable