@ChannelHandler.Sharable public class CommandEncoder extends MessageToByteEncoder<Object>
ChannelHandler responsible for encoding commands.ChannelHandler.Sharable| Constructor and Description |
|---|
CommandEncoder() |
CommandEncoder(boolean preferDirect) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
encode(ChannelHandlerContext ctx,
Object msg,
ByteBuf out) |
acceptOutboundMessage, allocateBuffer, writebind, close, connect, deregister, disconnect, flush, readexceptionCaught, handlerAdded, handlerRemoved, isSharableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexceptionCaught, handlerAdded, handlerRemovedpublic CommandEncoder()
public CommandEncoder(boolean preferDirect)
protected void encode(ChannelHandlerContext ctx, Object msg, ByteBuf out) throws Exception
encode in class MessageToByteEncoder<Object>ExceptionCopyright © 2016. All rights reserved.