Module 
Package org.xnio

Interface BufferAllocator<B extends Buffer>

Type Parameters:
B - the buffer type

public interface BufferAllocator<B extends Buffer>
A simple allocator for buffers.
Author:
David M. Lloyd
  • Field Details

    • BYTE_BUFFER_ALLOCATOR

      static final BufferAllocator<ByteBuffer> BYTE_BUFFER_ALLOCATOR
      A simple allocator for heap-array-backed byte buffers.
    • DIRECT_BYTE_BUFFER_ALLOCATOR

      static final BufferAllocator<ByteBuffer> DIRECT_BYTE_BUFFER_ALLOCATOR
      A simple allocator for direct byte buffers.
  • Method Details