Class MappedByteBufferPool.Tagged

java.lang.Object
org.eclipse.jetty.io.MappedByteBufferPool
org.eclipse.jetty.io.MappedByteBufferPool.Tagged
All Implemented Interfaces:
ByteBufferPool
Enclosing class:
MappedByteBufferPool

public static class MappedByteBufferPool.Tagged extends MappedByteBufferPool
  • Constructor Details

    • Tagged

      public Tagged()
  • Method Details

    • newByteBuffer

      public ByteBuffer newByteBuffer(int capacity, boolean direct)
      Description copied from interface: ByteBufferPool

      Creates a new ByteBuffer of the given capacity and the given directness.

      Parameters:
      capacity - the ByteBuffer capacity
      direct - the ByteBuffer directness
      Returns:
      a newly allocated ByteBuffer
    • getCapacityFactor

      protected int getCapacityFactor()
    • getMaxQueueLength

      protected int getMaxQueueLength()
    • decrementMemory

      protected void decrementMemory(ByteBuffer buffer)
    • incrementMemory

      protected void incrementMemory(ByteBuffer buffer)
    • releaseExcessMemory

      protected void releaseExcessMemory(boolean direct, Consumer<Boolean> clearFn)
    • getDirectMemory

      @ManagedAttribute("The bytes retained by direct ByteBuffers") public long getDirectMemory()
    • getHeapMemory

      @ManagedAttribute("The bytes retained by heap ByteBuffers") public long getHeapMemory()
    • getMemory

      public long getMemory(boolean direct)