@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, write
bind, close, connect, deregister, disconnect, flush, read
exceptionCaught, handlerAdded, handlerRemoved, isSharable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
exceptionCaught, handlerAdded, handlerRemoved
public CommandEncoder()
public CommandEncoder(boolean preferDirect)
protected void encode(ChannelHandlerContext ctx, Object msg, ByteBuf out) throws Exception
encode
in class MessageToByteEncoder<Object>
Exception
Copyright © 2016. All rights reserved.