@InterfaceAudience.Private public class DeallocateRewriteByteBuffAllocator extends ByteBuffAllocator
ByteBuffAllocator.Recycler
ALLOCATOR_POOL_ENABLED_KEY, BUFFER_SIZE_KEY, bufSize, BYTEBUFF_ALLOCATOR_CLASS, DEFAULT_BUFFER_SIZE, DEPRECATED_ALLOCATOR_POOL_ENABLED_KEY, HEAP, MAX_BUFFER_COUNT_KEY, MIN_ALLOCATE_SIZE_KEY, NONE, reservoirEnabled
Modifier and Type | Method and Description |
---|---|
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
protected void putbackBuffer(ByteBuffer buf)
ByteBuffAllocator
putbackBuffer
in class ByteBuffAllocator
buf
- ByteBuffer to return.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.