public abstract class FrameEncoder
extends io.netty.channel.ChannelOutboundHandlerAdapter
Modifier and Type | Class and Description |
---|---|
static class |
FrameEncoder.Payload
An abstraction useful for transparently allocating buffers that can be written to upstream
of the
FrameEncoder without knowledge of the encoder's frame layout, while ensuring
enough space to write the remainder of the frame's contents is reserved. |
static interface |
FrameEncoder.PayloadAllocator |
Modifier and Type | Field and Description |
---|---|
protected static BufferPool |
bufferPool |
Constructor and Description |
---|
FrameEncoder() |
Modifier and Type | Method and Description |
---|---|
FrameEncoder.PayloadAllocator |
allocator() |
void |
write(io.netty.channel.ChannelHandlerContext ctx,
java.lang.Object msg,
io.netty.channel.ChannelPromise promise) |
bind, close, connect, deregister, disconnect, flush, read
ensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharable
protected static final BufferPool bufferPool
public FrameEncoder.PayloadAllocator allocator()
public void write(io.netty.channel.ChannelHandlerContext ctx, java.lang.Object msg, io.netty.channel.ChannelPromise promise) throws java.lang.Exception
write
in interface io.netty.channel.ChannelOutboundHandler
write
in class io.netty.channel.ChannelOutboundHandlerAdapter
java.lang.Exception
Copyright © 2009-2022 The Apache Software Foundation