Class BufferAllocators

java.lang.Object
io.servicetalk.buffer.netty.BufferAllocators

public final class BufferAllocators extends Object
Available BufferAllocators.
  • Field Details

    • DEFAULT_ALLOCATOR

      public static final BufferAllocator DEFAULT_ALLOCATOR
      Default BufferAllocator whose Buffers are typically backed by Netty buffers.
    • PREFER_DIRECT_ALLOCATOR

      public static final BufferAllocator PREFER_DIRECT_ALLOCATOR
      Default BufferAllocator whose Buffers 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
      Default BufferAllocator whose Buffers are typically backed by Netty buffers and prefers heap memory allocation when otherwise not specified.