@ChannelHandler.Sharable
public class MessageEncoder
extends io.netty.handler.codec.MessageToByteEncoder<java.lang.Object>
| Constructor and Description |
|---|
MessageEncoder(int preamble) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptOutboundMessage(java.lang.Object msg) |
protected void |
encode(io.netty.channel.ChannelHandlerContext context,
java.lang.Object rawMessage,
io.netty.buffer.ByteBuf out) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext context,
java.lang.Throwable cause) |
bind, close, connect, deregister, disconnect, flush, readhandlerAdded, handlerRemoved, isSharableprotected void encode(io.netty.channel.ChannelHandlerContext context,
java.lang.Object rawMessage,
io.netty.buffer.ByteBuf out)
throws java.lang.Exception
encode in class io.netty.handler.codec.MessageToByteEncoder<java.lang.Object>java.lang.Exceptionpublic void exceptionCaught(io.netty.channel.ChannelHandlerContext context,
java.lang.Throwable cause)
exceptionCaught in interface io.netty.channel.ChannelHandlerexceptionCaught in class io.netty.channel.ChannelHandlerAdapterpublic final boolean acceptOutboundMessage(java.lang.Object msg)
throws java.lang.Exception
acceptOutboundMessage in class io.netty.handler.codec.MessageToByteEncoder<java.lang.Object>java.lang.Exception