public static class MappedByteBufferPool.Tagged extends MappedByteBufferPool
MappedByteBufferPool.TaggedByteBufferPool.Bucket, ByteBufferPool.Lease| Constructor and Description |
|---|
Tagged() |
| Modifier and Type | Method and Description |
|---|---|
long |
getDirectMemory() |
long |
getHeapMemory() |
long |
getMemory(boolean direct) |
ByteBuffer |
newByteBuffer(int capacity,
boolean direct)
Creates a new ByteBuffer of the given capacity and the given directness.
|
acquire, clear, getDirectByteBufferCount, getHeapByteBufferCount, releasepublic ByteBuffer newByteBuffer(int capacity, boolean direct)
ByteBufferPoolCreates a new ByteBuffer of the given capacity and the given directness.
capacity - the ByteBuffer capacitydirect - the ByteBuffer directness@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 © 2010 - 2020 Adobe. All Rights Reserved