java.lang.Object
org.eclipse.jetty.io.MappedByteBufferPool
org.eclipse.jetty.io.MappedByteBufferPool.Tagged
- All Implemented Interfaces:
ByteBufferPool,org.eclipse.jetty.util.component.Dumpable
- Enclosing class:
- MappedByteBufferPool
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.io.MappedByteBufferPool
MappedByteBufferPool.TaggedNested classes/interfaces inherited from interface org.eclipse.jetty.io.ByteBufferPool
ByteBufferPool.Bucket, ByteBufferPool.LeaseNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
org.eclipse.jetty.util.component.Dumpable.DumpableContainer -
Field Summary
Fields inherited from interface org.eclipse.jetty.util.component.Dumpable
KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddecrementMemory(ByteBuffer buffer) Deprecated.protected intlonglonglonglongprotected intlonggetMemory(boolean direct) protected voidincrementMemory(ByteBuffer buffer) Deprecated.newByteBuffer(int capacity, boolean direct) Creates a new ByteBuffer of the given capacity and the given directness.protected voidreleaseExcessMemory(boolean direct, Consumer<Boolean> clearFn) Methods inherited from class org.eclipse.jetty.io.MappedByteBufferPool
acquire, bucketFor, capacityFor, clear, dump, getDirectByteBufferCount, getHeapByteBufferCount, isDetailedDump, release, releaseMemory, setDetailedDump, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jetty.io.ByteBufferPool
removeMethods inherited from interface org.eclipse.jetty.util.component.Dumpable
dump, dumpSelf
-
Constructor Details
-
Tagged
public Tagged()
-
-
Method Details
-
newByteBuffer
Description copied from interface:ByteBufferPoolCreates 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
Deprecated. -
incrementMemory
Deprecated. -
releaseExcessMemory
-
getDirectMemory
@ManagedAttribute("The bytes retained by direct ByteBuffers") public long getDirectMemory() -
getHeapMemory
@ManagedAttribute("The bytes retained by heap ByteBuffers") public long getHeapMemory() -
getMaxDirectMemory
@ManagedAttribute("The max num of bytes that can be retained from direct ByteBuffers") public long getMaxDirectMemory() -
getMaxHeapMemory
@ManagedAttribute("The max num of bytes that can be retained from heap ByteBuffers") public long getMaxHeapMemory() -
getMemory
public long getMemory(boolean direct)
-