Package org.eclipse.jetty.io
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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jetty.io.MappedByteBufferPool
MappedByteBufferPool.Tagged
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.io.ByteBufferPool
ByteBufferPool.Bucket, ByteBufferPool.Lease
-
-
Constructor Summary
Constructors Constructor Description Tagged()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
decrementMemory(java.nio.ByteBuffer buffer)
protected int
getCapacityFactor()
long
getDirectMemory()
long
getHeapMemory()
protected int
getMaxQueueLength()
long
getMemory(boolean direct)
protected void
incrementMemory(java.nio.ByteBuffer buffer)
java.nio.ByteBuffer
newByteBuffer(int capacity, boolean direct)
Creates a new ByteBuffer of the given capacity and the given directness.protected void
releaseExcessMemory(boolean direct, java.util.function.Consumer<java.lang.Boolean> clearFn)
-
Methods inherited from class org.eclipse.jetty.io.MappedByteBufferPool
acquire, clear, getDirectByteBufferCount, getHeapByteBufferCount, release
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.jetty.io.ByteBufferPool
remove
-
-
-
-
Method Detail
-
newByteBuffer
public java.nio.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 capacitydirect
- the ByteBuffer directness- Returns:
- a newly allocated ByteBuffer
-
getCapacityFactor
protected int getCapacityFactor()
-
getMaxQueueLength
protected int getMaxQueueLength()
-
decrementMemory
protected void decrementMemory(java.nio.ByteBuffer buffer)
-
incrementMemory
protected void incrementMemory(java.nio.ByteBuffer buffer)
-
releaseExcessMemory
protected void releaseExcessMemory(boolean direct, java.util.function.Consumer<java.lang.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)
-
-