BufferAllocator

An object responsible for allocation of buffers. This is an extension point to enable buffer pooling within an application.

Members

Functions

allocateDirectBuffer
AllocatedBuffer allocateDirectBuffer(int capacity)

Allocates a direct (i.e. non-heap) buffer with the given capacity.

Static functions

unpooled
BufferAllocator unpooled()

Returns an unpooled buffer allocator, which will create a new buffer for each request.

Meta