public final class PartialPooledByteBufAllocator extends Object implements io.netty.buffer.ByteBufAllocator
ByteBufAllocator which is partial pooled. Which means only direct ByteBufs are pooled. The rest
is unpooled.| Modifier and Type | Field and Description |
|---|---|
static PartialPooledByteBufAllocator |
INSTANCE |
static io.netty.buffer.ByteBufAllocator |
UNPOOLED |
| Modifier and Type | Method and Description |
|---|---|
io.netty.buffer.ByteBuf |
buffer() |
io.netty.buffer.ByteBuf |
buffer(int initialCapacity) |
io.netty.buffer.ByteBuf |
buffer(int initialCapacity,
int maxCapacity) |
int |
calculateNewCapacity(int minNewCapacity,
int maxCapacity) |
io.netty.buffer.CompositeByteBuf |
compositeBuffer() |
io.netty.buffer.CompositeByteBuf |
compositeBuffer(int maxNumComponents) |
io.netty.buffer.CompositeByteBuf |
compositeDirectBuffer() |
io.netty.buffer.CompositeByteBuf |
compositeDirectBuffer(int maxNumComponents) |
io.netty.buffer.CompositeByteBuf |
compositeHeapBuffer() |
io.netty.buffer.CompositeByteBuf |
compositeHeapBuffer(int maxNumComponents) |
io.netty.buffer.ByteBuf |
directBuffer() |
io.netty.buffer.ByteBuf |
directBuffer(int initialCapacity) |
io.netty.buffer.ByteBuf |
directBuffer(int initialCapacity,
int maxCapacity) |
static io.netty.channel.ChannelHandlerContext |
forceDirectAllocator(io.netty.channel.ChannelHandlerContext ctx)
Create a new
ChannelHandlerContext which wraps the given one anf force the usage of direct buffers. |
io.netty.buffer.ByteBuf |
heapBuffer() |
io.netty.buffer.ByteBuf |
heapBuffer(int initialCapacity) |
io.netty.buffer.ByteBuf |
heapBuffer(int initialCapacity,
int maxCapacity) |
io.netty.buffer.ByteBuf |
ioBuffer() |
io.netty.buffer.ByteBuf |
ioBuffer(int initialCapacity) |
io.netty.buffer.ByteBuf |
ioBuffer(int initialCapacity,
int maxCapacity) |
boolean |
isDirectBufferPooled() |
public static final io.netty.buffer.ByteBufAllocator UNPOOLED
public static final PartialPooledByteBufAllocator INSTANCE
public io.netty.buffer.ByteBuf buffer()
buffer in interface io.netty.buffer.ByteBufAllocatorpublic io.netty.buffer.ByteBuf buffer(int initialCapacity)
buffer in interface io.netty.buffer.ByteBufAllocatorpublic io.netty.buffer.ByteBuf buffer(int initialCapacity,
int maxCapacity)
buffer in interface io.netty.buffer.ByteBufAllocatorpublic io.netty.buffer.ByteBuf ioBuffer()
ioBuffer in interface io.netty.buffer.ByteBufAllocatorpublic io.netty.buffer.ByteBuf ioBuffer(int initialCapacity)
ioBuffer in interface io.netty.buffer.ByteBufAllocatorpublic io.netty.buffer.ByteBuf ioBuffer(int initialCapacity,
int maxCapacity)
ioBuffer in interface io.netty.buffer.ByteBufAllocatorpublic io.netty.buffer.ByteBuf heapBuffer()
heapBuffer in interface io.netty.buffer.ByteBufAllocatorpublic io.netty.buffer.ByteBuf heapBuffer(int initialCapacity)
heapBuffer in interface io.netty.buffer.ByteBufAllocatorpublic io.netty.buffer.ByteBuf heapBuffer(int initialCapacity,
int maxCapacity)
heapBuffer in interface io.netty.buffer.ByteBufAllocatorpublic io.netty.buffer.ByteBuf directBuffer()
directBuffer in interface io.netty.buffer.ByteBufAllocatorpublic io.netty.buffer.ByteBuf directBuffer(int initialCapacity)
directBuffer in interface io.netty.buffer.ByteBufAllocatorpublic io.netty.buffer.ByteBuf directBuffer(int initialCapacity,
int maxCapacity)
directBuffer in interface io.netty.buffer.ByteBufAllocatorpublic io.netty.buffer.CompositeByteBuf compositeBuffer()
compositeBuffer in interface io.netty.buffer.ByteBufAllocatorpublic io.netty.buffer.CompositeByteBuf compositeBuffer(int maxNumComponents)
compositeBuffer in interface io.netty.buffer.ByteBufAllocatorpublic io.netty.buffer.CompositeByteBuf compositeHeapBuffer()
compositeHeapBuffer in interface io.netty.buffer.ByteBufAllocatorpublic io.netty.buffer.CompositeByteBuf compositeHeapBuffer(int maxNumComponents)
compositeHeapBuffer in interface io.netty.buffer.ByteBufAllocatorpublic io.netty.buffer.CompositeByteBuf compositeDirectBuffer()
compositeDirectBuffer in interface io.netty.buffer.ByteBufAllocatorpublic io.netty.buffer.CompositeByteBuf compositeDirectBuffer(int maxNumComponents)
compositeDirectBuffer in interface io.netty.buffer.ByteBufAllocatorpublic boolean isDirectBufferPooled()
isDirectBufferPooled in interface io.netty.buffer.ByteBufAllocatorpublic int calculateNewCapacity(int minNewCapacity,
int maxCapacity)
calculateNewCapacity in interface io.netty.buffer.ByteBufAllocatorpublic static io.netty.channel.ChannelHandlerContext forceDirectAllocator(io.netty.channel.ChannelHandlerContext ctx)
ChannelHandlerContext which wraps the given one anf force the usage of direct buffers.Copyright © 2020. All rights reserved.