public final class PooledRecvByteBufAllocatorInitializers
extends java.lang.Object
RecvByteBufAllocator
for reading data from the socket.Modifier and Type | Field and Description |
---|---|
static ChannelInitializer |
COPY_HANDLER_INITIALIZER
Initializer to configure
ChannelInboundHandler that will ensure no pooled ByteBuf s are passed to
the user and so no leaks are produced if the user does not call ReferenceCountUtil.release(Object) . |
static io.netty.buffer.PooledByteBufAllocator |
POOLED_ALLOCATOR
PooledByteBufAllocator to use internally when we know memory won't be leaked. |
static ChannelInitializer |
POOLED_RECV_ALLOCATOR_INITIALIZER
Initializer to configure
RecvByteBufAllocator backed by a pooled ByteBufAllocator . |
public static final io.netty.buffer.PooledByteBufAllocator POOLED_ALLOCATOR
PooledByteBufAllocator
to use internally when we know memory won't be leaked.public static final ChannelInitializer POOLED_RECV_ALLOCATOR_INITIALIZER
RecvByteBufAllocator
backed by a pooled ByteBufAllocator
.public static final ChannelInitializer COPY_HANDLER_INITIALIZER
ChannelInboundHandler
that will ensure no pooled ByteBuf
s are passed to
the user and so no leaks are produced if the user does not call ReferenceCountUtil.release(Object)
.