Class RetainableByteBufferPool.NotRetainedByteBufferPool

java.lang.Object
org.eclipse.jetty.io.RetainableByteBufferPool.NotRetainedByteBufferPool
All Implemented Interfaces:
RetainableByteBufferPool
Enclosing interface:
RetainableByteBufferPool

public static class RetainableByteBufferPool.NotRetainedByteBufferPool extends Object implements RetainableByteBufferPool
  • Constructor Details

    • NotRetainedByteBufferPool

      public NotRetainedByteBufferPool(ByteBufferPool byteBufferPool)
  • Method Details

    • acquire

      public RetainableByteBuffer acquire(int size, boolean direct)
      Description copied from interface: RetainableByteBufferPool
      Acquires a memory buffer from the pool.
      Specified by:
      acquire in interface RetainableByteBufferPool
      Parameters:
      size - The size of the buffer. The returned buffer will have at least this capacity.
      direct - true if a direct memory buffer is needed, false otherwise.
      Returns:
      a memory buffer with position and size set to 0.
    • clear

      public void clear()
      Specified by:
      clear in interface RetainableByteBufferPool
    • toString

      public String toString()
      Overrides:
      toString in class Object