public static class ByteBlockPool.DirectTrackingAllocator extends ByteBlockPool.Allocator
ByteBlockPool.Allocator
that never recycles, but
tracks how much total RAM is in use.blockSize
Constructor and Description |
---|
ByteBlockPool.DirectTrackingAllocator(AtomicLong bytesUsed) |
ByteBlockPool.DirectTrackingAllocator(int blockSize,
AtomicLong bytesUsed) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getByteBlock() |
void |
recycleByteBlocks(byte[][] blocks,
int start,
int end) |
recycleByteBlocks
public ByteBlockPool.DirectTrackingAllocator(AtomicLong bytesUsed)
public ByteBlockPool.DirectTrackingAllocator(int blockSize, AtomicLong bytesUsed)
public byte[] getByteBlock()
getByteBlock
in class ByteBlockPool.Allocator
public void recycleByteBlocks(byte[][] blocks, int start, int end)
recycleByteBlocks
in class ByteBlockPool.Allocator