@ChannelHandler.Sharable public class CommandEncoder extends io.netty.handler.codec.MessageToByteEncoder<CommandData<?,?>>
| Modifier and Type | Field and Description |
|---|---|
static CommandEncoder |
INSTANCE |
| Constructor and Description |
|---|
CommandEncoder() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
encode(io.netty.channel.ChannelHandlerContext ctx,
CommandData<?,?> msg,
io.netty.buffer.ByteBuf out) |
void |
write(io.netty.channel.ChannelHandlerContext ctx,
Object msg,
io.netty.channel.ChannelPromise promise) |
acceptOutboundMessage, allocateBuffer, isPreferDirectbind, close, connect, deregister, disconnect, flush, readensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharablepublic static final CommandEncoder INSTANCE
public void write(io.netty.channel.ChannelHandlerContext ctx,
Object msg,
io.netty.channel.ChannelPromise promise)
throws Exception
write in interface io.netty.channel.ChannelOutboundHandlerwrite in class io.netty.handler.codec.MessageToByteEncoder<CommandData<?,?>>Exceptionprotected void encode(io.netty.channel.ChannelHandlerContext ctx,
CommandData<?,?> msg,
io.netty.buffer.ByteBuf out)
throws Exception
encode in class io.netty.handler.codec.MessageToByteEncoder<CommandData<?,?>>ExceptionCopyright © 2014–2018 The Redisson Project. All rights reserved.