@InterfaceAudience.Private public class DeallocateRewriteByteBuffAllocator extends ByteBuffAllocator
ByteBuffAllocator.Recycler
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
LOG |
ALLOCATOR_POOL_ENABLED_KEY, BUFFER_SIZE_KEY, bufSize, BYTEBUFF_ALLOCATOR_CLASS, DEFAULT_BUFFER_SIZE, DEPRECATED_ALLOCATOR_POOL_ENABLED_KEY, DEPRECATED_BUFFER_SIZE_KEY, DEPRECATED_MAX_BUFFER_COUNT_KEY, HEAP, MAX_BUFFER_COUNT_KEY, MIN_ALLOCATE_SIZE_KEY, NONE, reservoirEnabled
Constructor and Description |
---|
DeallocateRewriteByteBuffAllocator(boolean reservoirEnabled,
int maxBufCount,
int bufSize,
int minSizeForReservoirUse) |
Modifier and Type | Method and Description |
---|---|
private byte[] |
generateTmpBytes(int length) |
protected void |
putbackBuffer(ByteBuffer buf)
Return back a ByteBuffer after its use.
|
allocate, allocateOneBuffer, clean, create, getBufferSize, getFreeBufferCount, getHeapAllocationBytes, getHeapAllocationBytes, getHeapAllocationRatio, getPoolAllocationBytes, getTotalBufferCount, getUsedBufferCount, isReservoirEnabled
private static final org.slf4j.Logger LOG
DeallocateRewriteByteBuffAllocator(boolean reservoirEnabled, int maxBufCount, int bufSize, int minSizeForReservoirUse)
protected void putbackBuffer(ByteBuffer buf)
ByteBuffAllocator
putbackBuffer
in class ByteBuffAllocator
buf
- ByteBuffer to return.private byte[] generateTmpBytes(int length)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.