Package io.servicetalk.buffer.netty
Class BufferAllocators
- java.lang.Object
-
- io.servicetalk.buffer.netty.BufferAllocators
-
public final class BufferAllocators extends java.lang.Object
AvailableBufferAllocator
s.
-
-
Field Summary
Fields Modifier and Type Field Description static BufferAllocator
DEFAULT_ALLOCATOR
DefaultBufferAllocator
whoseBuffer
s are typically backed by Netty buffers.static BufferAllocator
PREFER_DIRECT_ALLOCATOR
DefaultBufferAllocator
whoseBuffer
s are typically backed by Netty buffers and prefers direct memory allocation when otherwise not specified.static BufferAllocator
PREFER_HEAP_ALLOCATOR
DefaultBufferAllocator
whoseBuffer
s are typically backed by Netty buffers and prefers heap memory allocation when otherwise not specified.
-
-
-
Field Detail
-
DEFAULT_ALLOCATOR
public static final BufferAllocator DEFAULT_ALLOCATOR
DefaultBufferAllocator
whoseBuffer
s are typically backed by Netty buffers.
-
PREFER_DIRECT_ALLOCATOR
public static final BufferAllocator PREFER_DIRECT_ALLOCATOR
DefaultBufferAllocator
whoseBuffer
s are typically backed by Netty buffers and prefers direct memory allocation when otherwise not specified.
-
PREFER_HEAP_ALLOCATOR
public static final BufferAllocator PREFER_HEAP_ALLOCATOR
DefaultBufferAllocator
whoseBuffer
s are typically backed by Netty buffers and prefers heap memory allocation when otherwise not specified.
-
-