Class ByteBufferPool.Lease

java.lang.Object
org.eclipse.jetty.io.ByteBufferPool.Lease
Enclosing interface:
ByteBufferPool

public static class ByteBufferPool.Lease extends Object
  • Constructor Details

  • Method Details

    • acquire

      public ByteBuffer acquire(int capacity, boolean direct)
    • append

      public void append(ByteBuffer buffer, boolean recycle)
    • insert

      public void insert(int index, ByteBuffer buffer, boolean recycle)
    • getByteBuffers

      public List<ByteBuffer> getByteBuffers()
    • getTotalLength

      public long getTotalLength()
    • getSize

      public int getSize()
    • recycle

      public void recycle()
    • release

      public void release(ByteBuffer buffer)