public class CommandDecoder extends io.netty.handler.codec.ReplayingDecoder<State>
Constructor and Description |
---|
CommandDecoder(ExecutorService executor,
boolean decodeInExecutor) |
Modifier and Type | Method and Description |
---|---|
protected void |
completeResponse(CommandData<Object,Object> data,
Object result,
io.netty.channel.Channel channel) |
protected void |
decode(io.netty.buffer.ByteBuf in,
CommandData<Object,Object> data,
List<Object> parts,
io.netty.channel.Channel channel,
boolean skipConvertor,
List<CommandData<?,?>> commandsData) |
protected void |
decode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf in,
List<Object> out) |
protected void |
decodeCommand(io.netty.channel.Channel channel,
io.netty.buffer.ByteBuf in,
QueueCommand data) |
protected void |
decodeResult(CommandData<Object,Object> data,
List<Object> parts,
io.netty.channel.Channel channel,
Object result) |
protected MultiDecoder<Object> |
messageDecoder(CommandData<Object,Object> data,
List<Object> parts) |
protected Decoder<Object> |
selectDecoder(CommandData<Object,Object> data,
List<Object> parts) |
protected void |
sendNext(io.netty.channel.Channel channel) |
protected void |
sendNext(io.netty.channel.Channel channel,
QueueCommand data) |
protected void |
skipCommand(io.netty.buffer.ByteBuf in) |
protected void |
skipDecode(io.netty.buffer.ByteBuf in) |
callDecode, checkpoint, checkpoint, state, state
actualReadableBytes, channelInactive, channelRead, channelReadComplete, decodeLast, discardSomeReadBytes, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecode, userEventTriggered
channelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught
ensureNotSharable, handlerAdded, isSharable
public CommandDecoder(ExecutorService executor, boolean decodeInExecutor)
protected final void decode(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf in, List<Object> out) throws Exception
decode
in class io.netty.handler.codec.ByteToMessageDecoder
Exception
protected void sendNext(io.netty.channel.Channel channel, QueueCommand data)
protected void skipCommand(io.netty.buffer.ByteBuf in) throws Exception
Exception
protected void skipDecode(io.netty.buffer.ByteBuf in) throws IOException
IOException
protected void decodeCommand(io.netty.channel.Channel channel, io.netty.buffer.ByteBuf in, QueueCommand data) throws Exception
Exception
protected void sendNext(io.netty.channel.Channel channel)
protected void decode(io.netty.buffer.ByteBuf in, CommandData<Object,Object> data, List<Object> parts, io.netty.channel.Channel channel, boolean skipConvertor, List<CommandData<?,?>> commandsData) throws IOException
IOException
protected void decodeResult(CommandData<Object,Object> data, List<Object> parts, io.netty.channel.Channel channel, Object result) throws IOException
IOException
protected void completeResponse(CommandData<Object,Object> data, Object result, io.netty.channel.Channel channel)
protected MultiDecoder<Object> messageDecoder(CommandData<Object,Object> data, List<Object> parts)
Copyright © 2014–2019 The Redisson Project. All rights reserved.