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 ByteBuf |
allocateBuffer(ChannelHandlerContext ctx,
Object msg,
boolean preferDirect) |
protected void |
encode(ChannelHandlerContext ctx,
Object msg,
ByteBuf out) |
acceptOutboundMessage, isPreferDirect, writebind, close, connect, deregister, disconnect, flush, readensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexceptionCaught, handlerAdded, handlerRemovedpublic CommandEncoder()
public CommandEncoder(boolean preferDirect)
protected ByteBuf allocateBuffer(ChannelHandlerContext ctx, Object msg, boolean preferDirect) throws Exception
allocateBuffer in class MessageToByteEncoder<Object>Exceptionprotected void encode(ChannelHandlerContext ctx, Object msg, ByteBuf out) throws Exception
encode in class MessageToByteEncoder<Object>ExceptionCopyright © 2021 lettuce.io. All rights reserved.