public static class MappedByteBufferPool.Tagged extends MappedByteBufferPool
MappedByteBufferPool.Tagged
ByteBufferPool.Bucket, ByteBufferPool.Lease
Constructor and Description |
---|
Tagged() |
Modifier and Type | Method and 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) |
acquire, clear, getDirectByteBufferCount, getHeapByteBufferCount, release
public java.nio.ByteBuffer newByteBuffer(int capacity, boolean direct)
ByteBufferPool
Creates a new ByteBuffer of the given capacity and the given directness.
capacity
- the ByteBuffer capacitydirect
- the ByteBuffer directnessprotected int getCapacityFactor()
protected int getMaxQueueLength()
protected void decrementMemory(java.nio.ByteBuffer buffer)
protected void incrementMemory(java.nio.ByteBuffer buffer)
protected void releaseExcessMemory(boolean direct, java.util.function.Consumer<java.lang.Boolean> clearFn)
@ManagedAttribute(value="The bytes retained by direct ByteBuffers") public long getDirectMemory()
@ManagedAttribute(value="The bytes retained by heap ByteBuffers") public long getHeapMemory()
public long getMemory(boolean direct)
Copyright © 1995–2019 Webtide. All rights reserved.