public class CommandDecoder extends io.netty.handler.codec.ReplayingDecoder<State>
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
log |
Constructor and Description |
---|
CommandDecoder() |
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.ChannelHandlerContext ctx,
boolean skipConvertor) |
protected void |
decode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf in,
List<Object> out) |
protected void |
decodeCommand(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf in,
QueueCommand data) |
protected void |
decodeFromCheckpoint(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf in,
QueueCommand data,
CommandData<Object,Object> cmd) |
protected void |
decodeResult(CommandData<Object,Object> data,
List<Object> parts,
io.netty.channel.ChannelHandlerContext ctx,
Object result) |
protected MultiDecoder<Object> |
messageDecoder(CommandData<Object,Object> data,
List<Object> parts) |
io.netty.buffer.ByteBuf |
readBytes(io.netty.buffer.ByteBuf is) |
static long |
readLong(io.netty.buffer.ByteBuf is) |
protected Decoder<Object> |
selectDecoder(CommandData<Object,Object> data,
List<Object> parts) |
protected void |
sendNext(io.netty.channel.ChannelHandlerContext ctx) |
protected void |
sendNext(io.netty.channel.ChannelHandlerContext ctx,
QueueCommand data) |
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
protected 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.ChannelHandlerContext ctx, QueueCommand data)
protected void decodeCommand(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf in, QueueCommand data) throws Exception
Exception
protected void sendNext(io.netty.channel.ChannelHandlerContext ctx)
protected void decodeFromCheckpoint(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf in, QueueCommand data, CommandData<Object,Object> cmd) throws IOException
IOException
protected void decode(io.netty.buffer.ByteBuf in, CommandData<Object,Object> data, List<Object> parts, io.netty.channel.ChannelHandlerContext ctx, boolean skipConvertor) throws IOException
IOException
protected void decodeResult(CommandData<Object,Object> data, List<Object> parts, io.netty.channel.ChannelHandlerContext ctx, 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)
protected Decoder<Object> selectDecoder(CommandData<Object,Object> data, List<Object> parts)
public io.netty.buffer.ByteBuf readBytes(io.netty.buffer.ByteBuf is) throws IOException
IOException
public static long readLong(io.netty.buffer.ByteBuf is) throws IOException
IOException
Copyright © 2014–2018 The Redisson Project. All rights reserved.