io.netty.buffer.ByteBufAllocator which is partial pooled. Which means only direct io.netty.buffer.ByteBuf s are pooled. The rest
is unpooled.
| Modifier and Type | Field and Description |
|---|---|
| public static final PartialPooledByteBufAllocator | INSTANCE
The shared allocator instance. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public ByteBuf | |
| public ByteBuf | buffer(int initialCapacity)
Implements io. Allocate a |
| public ByteBuf | buffer(int initialCapacity, int maxCapacity)
Implements io. Allocate a |
| public int | calculateNewCapacity(int minNewCapacity, int maxCapacity)
Implements io. Calculate the new capacity of a |
| public CompositeByteBuf | compositeBuffer()
Implements io. Allocate a |
| public CompositeByteBuf | compositeBuffer(int maxNumComponents)
Implements io. Allocate a |
| public CompositeByteBuf | compositeDirectBuffer()
Implements io. Allocate a direct |
| public CompositeByteBuf | compositeDirectBuffer(int maxNumComponents)
Implements io. Allocate a direct |
| public CompositeByteBuf | compositeHeapBuffer()
Implements io. Allocate a heap |
| public CompositeByteBuf | compositeHeapBuffer(int maxNumComponents)
Implements io. Allocate a heap |
| public ByteBuf | |
| public ByteBuf | directBuffer(int initialCapacity)
Implements io. Allocate a direct |
| public ByteBuf | directBuffer(int initialCapacity, int maxCapacity)
Implements io. Allocate a direct |
| public ByteBuf | |
| public ByteBuf | heapBuffer(int initialCapacity)
Implements io. Allocate a heap |
| public ByteBuf | heapBuffer(int initialCapacity, int maxCapacity)
Implements io. Allocate a heap |
| public ByteBuf | ioBuffer()
Implements io. Allocate a |
| public ByteBuf | ioBuffer(int initialCapacity)
Implements io. Allocate a |
| public ByteBuf | ioBuffer(int initialCapacity, int maxCapacity)
Implements io. Allocate a |
| public boolean | isDirectBufferPooled()
Implements io. Returns |
| INSTANCE | back to summary |
|---|---|
| public static final PartialPooledByteBufAllocator INSTANCE The shared allocator instance. | |
| PartialPooledByteBufAllocator | back to summary |
|---|---|
| private PartialPooledByteBufAllocator() | |
| buffer | back to summary |
|---|---|
| public ByteBuf buffer() Implements io. Doc from io. Allocate a
| |
| buffer | back to summary |
|---|---|
| public ByteBuf buffer(int initialCapacity) Implements io. Doc from io. Allocate a
| |
| buffer | back to summary |
|---|---|
| public ByteBuf buffer(int initialCapacity, int maxCapacity) Implements io. Doc from io. Allocate a
| |
| calculateNewCapacity | back to summary |
|---|---|
| public int calculateNewCapacity(int minNewCapacity, int maxCapacity) Implements io. Doc from io. Calculate the new capacity of a
| |
| compositeBuffer | back to summary |
|---|---|
| public CompositeByteBuf compositeBuffer() Implements io. Doc from io. Allocate a
| |
| compositeBuffer | back to summary |
|---|---|
| public CompositeByteBuf compositeBuffer(int maxNumComponents) Implements io. Doc from io. Allocate a
| |
| compositeDirectBuffer | back to summary |
|---|---|
| public CompositeByteBuf compositeDirectBuffer() Implements io. Doc from io. Allocate a direct
| |
| compositeDirectBuffer | back to summary |
|---|---|
| public CompositeByteBuf compositeDirectBuffer(int maxNumComponents) Implements io. Doc from io. Allocate a direct
| |
| compositeHeapBuffer | back to summary |
|---|---|
| public CompositeByteBuf compositeHeapBuffer() Implements io. Doc from io. Allocate a heap
| |
| compositeHeapBuffer | back to summary |
|---|---|
| public CompositeByteBuf compositeHeapBuffer(int maxNumComponents) Implements io. Doc from io. Allocate a heap
| |
| directBuffer | back to summary |
|---|---|
| public ByteBuf directBuffer() Implements io. Doc from io. Allocate a direct
| |
| directBuffer | back to summary |
|---|---|
| public ByteBuf directBuffer(int initialCapacity) Implements io. Doc from io. Allocate a direct
| |
| directBuffer | back to summary |
|---|---|
| public ByteBuf directBuffer(int initialCapacity, int maxCapacity) Implements io. Doc from io. Allocate a direct
| |
| heapBuffer | back to summary |
|---|---|
| public ByteBuf heapBuffer() Implements io. Doc from io. Allocate a heap
| |
| heapBuffer | back to summary |
|---|---|
| public ByteBuf heapBuffer(int initialCapacity) Implements io. Doc from io. Allocate a heap
| |
| heapBuffer | back to summary |
|---|---|
| public ByteBuf heapBuffer(int initialCapacity, int maxCapacity) Implements io. Doc from io. Allocate a heap
| |
| ioBuffer | back to summary |
|---|---|
| public ByteBuf ioBuffer() Implements io. Doc from io. Allocate a
| |
| ioBuffer | back to summary |
|---|---|
| public ByteBuf ioBuffer(int initialCapacity) Implements io. Doc from io. Allocate a
| |
| ioBuffer | back to summary |
|---|---|
| public ByteBuf ioBuffer(int initialCapacity, int maxCapacity) Implements io. Doc from io. Allocate a
| |
| isDirectBufferPooled | back to summary |
|---|---|
| public boolean isDirectBufferPooled() Implements io. Doc from io. Returns
| |