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()
AllocationManagermemoryAddress in class AllocationManagerprotected void release0()
AllocationManagerrelease0 in class AllocationManagerpublic long getSize()
NettyAllocationManager rounds requested size up to the next power of two.
getSize in class AllocationManagerCopyright © 2024 The Apache Software Foundation. All rights reserved.