public class NettyAllocationManager extends AllocationManager
AllocationManager
. The implementation is responsible for managing when memory
is allocated and returned to the Netty-based PooledByteBufAllocatorL.AllocationManager.Factory
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_ALLOCATION_CUTOFF_VALUE
The default cut-off value for switching allocation strategies.
|
static AllocationManager.Factory |
FACTORY |
Modifier and Type | Method and Description |
---|---|
long |
getSize()
Returns the underlying memory chunk size managed.
|
protected long |
memoryAddress()
Return the absolute memory address pointing to the fist byte of underlying memory chunk.
|
protected void |
release0()
Release the underlying memory chunk.
|
public static final AllocationManager.Factory FACTORY
public static final int DEFAULT_ALLOCATION_CUTOFF_VALUE
PooledByteBufAllocatorL
APIs,
otherwise, we will use PlatformDependent
APIs.protected long memoryAddress()
AllocationManager
memoryAddress
in class AllocationManager
protected void release0()
AllocationManager
release0
in class AllocationManager
public long getSize()
NettyAllocationManager rounds requested size up to the next power of two.
getSize
in class AllocationManager
Copyright © 2023 The Apache Software Foundation. All rights reserved.