Class ByteBufferPool.Lease

  • Enclosing interface:
    ByteBufferPool

    public static class ByteBufferPool.Lease
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Lease​(ByteBufferPool byteBufferPool)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.nio.ByteBuffer acquire​(int capacity, boolean direct)  
      void append​(java.nio.ByteBuffer buffer, boolean recycle)  
      java.util.List<java.nio.ByteBuffer> getByteBuffers()  
      int getSize()  
      long getTotalLength()  
      void insert​(int index, java.nio.ByteBuffer buffer, boolean recycle)  
      void recycle()  
      void release​(java.nio.ByteBuffer buffer)  
      • Methods inherited from class java.lang.Object

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

      • acquire

        public java.nio.ByteBuffer acquire​(int capacity,
                                           boolean direct)
      • append

        public void append​(java.nio.ByteBuffer buffer,
                           boolean recycle)
      • insert

        public void insert​(int index,
                           java.nio.ByteBuffer buffer,
                           boolean recycle)
      • getByteBuffers

        public java.util.List<java.nio.ByteBuffer> getByteBuffers()
      • getTotalLength

        public long getTotalLength()
      • getSize

        public int getSize()
      • recycle

        public void recycle()
      • release

        public void release​(java.nio.ByteBuffer buffer)