@ChannelHandler.Sharable public class CommandBatchEncoder extends io.netty.handler.codec.MessageToByteEncoder<CommandsData>
Modifier and Type | Field and Description |
---|---|
static CommandBatchEncoder |
INSTANCE |
Constructor and Description |
---|
CommandBatchEncoder() |
Modifier and Type | Method and Description |
---|---|
protected void |
encode(io.netty.channel.ChannelHandlerContext ctx,
CommandsData msg,
io.netty.buffer.ByteBuf out) |
void |
write(io.netty.channel.ChannelHandlerContext ctx,
Object msg,
io.netty.channel.ChannelPromise promise) |
acceptOutboundMessage, allocateBuffer, isPreferDirect
bind, close, connect, deregister, disconnect, flush, read
ensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharable
public static final CommandBatchEncoder INSTANCE
public void write(io.netty.channel.ChannelHandlerContext ctx, Object msg, io.netty.channel.ChannelPromise promise) throws Exception
write
in interface io.netty.channel.ChannelOutboundHandler
write
in class io.netty.handler.codec.MessageToByteEncoder<CommandsData>
Exception
protected void encode(io.netty.channel.ChannelHandlerContext ctx, CommandsData msg, io.netty.buffer.ByteBuf out) throws Exception
encode
in class io.netty.handler.codec.MessageToByteEncoder<CommandsData>
Exception
Copyright © 2014–2020 Redisson. All rights reserved.