@ChannelHandler.Sharable public class MessageEncoder extends io.netty.handler.codec.MessageToByteEncoder<InternalMessage>
| Constructor and Description |
|---|
MessageEncoder(int preamble) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
encode(io.netty.channel.ChannelHandlerContext context,
InternalMessage message,
io.netty.buffer.ByteBuf out) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext context,
Throwable cause) |
acceptOutboundMessage, allocateBuffer, writebind, close, connect, deregister, disconnect, flush, readhandlerAdded, handlerRemoved, isSharableprotected void encode(io.netty.channel.ChannelHandlerContext context,
InternalMessage message,
io.netty.buffer.ByteBuf out)
throws Exception
encode in class io.netty.handler.codec.MessageToByteEncoder<InternalMessage>Exceptionpublic void exceptionCaught(io.netty.channel.ChannelHandlerContext context,
Throwable cause)
exceptionCaught in interface io.netty.channel.ChannelHandlerexceptionCaught in class io.netty.channel.ChannelHandlerAdapterCopyright © 2016. All rights reserved.