public final class BufferAllocators
extends java.lang.Object
BufferAllocator
s.Modifier and Type | Field and Description |
---|---|
static BufferAllocator |
DEFAULT_ALLOCATOR
Default
BufferAllocator whose Buffer s are typically backed by Netty buffers. |
static BufferAllocator |
PREFER_DIRECT_ALLOCATOR
Default
BufferAllocator whose Buffer s are typically backed by Netty buffers and prefers direct
memory allocation when otherwise not specified. |
static BufferAllocator |
PREFER_HEAP_ALLOCATOR
Default
BufferAllocator whose Buffer s are typically backed by Netty buffers and prefers heap
memory allocation when otherwise not specified. |
public static final BufferAllocator DEFAULT_ALLOCATOR
BufferAllocator
whose Buffer
s are typically backed by Netty buffers.public static final BufferAllocator PREFER_DIRECT_ALLOCATOR
BufferAllocator
whose Buffer
s are typically backed by Netty buffers and prefers direct
memory allocation when otherwise not specified.public static final BufferAllocator PREFER_HEAP_ALLOCATOR
BufferAllocator
whose Buffer
s are typically backed by Netty buffers and prefers heap
memory allocation when otherwise not specified.