@ExperimentalApi public abstract class BufferAllocator extends Object
| Constructor and Description |
|---|
BufferAllocator() |
| Modifier and Type | Method and Description |
|---|---|
abstract AllocatedBuffer |
allocateDirectBuffer(int capacity)
Allocates a direct (i.e.
|
static BufferAllocator |
unpooled()
Returns an unpooled buffer allocator, which will create a new buffer for each request.
|
public static BufferAllocator unpooled()
public abstract AllocatedBuffer allocateDirectBuffer(int capacity)