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