Buffers are allocated that are used when reading from
the transport.
| Modifier and Type | Method and Description |
|---|---|
| public Buffer | Returns: theBuffer that will be used or null if the read should not happen
until the next ChannelOutboundInvoker#read(ReadBufferAllocator) call is
done.The allocator, int BufferAllocator that might be used for the allocation.
While its fine to not use the BufferAllocator it is important that the
returned Buffer matches the BufferAllocator#getAllocationType()
of the allocator.the estimated capacity for the buffer. This is just a best guess and users might
decide to use their own capacity. estimatedCapacity)Allocates a |
| public static ReadBufferAllocator | Returns: aReadBufferAllocator.the number of bytes that can be written. numBytes)Return a |
| allocate | back to summary |
|---|---|
| public Buffer allocate(BufferAllocator allocator, int estimatedCapacity) Allocates a
| |
| exact | back to summary |
|---|---|
| public static ReadBufferAllocator exact(int numBytes) Return a
| |