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.Channel channel) |
protected void |
decode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf in,
List<Object> out) |
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) |
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) |
callDecode, checkpoint, checkpoint, state, stateactualReadableBytes, channelInactive, channelRead, channelReadComplete, decodeLast, discardSomeReadBytes, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecode, userEventTriggeredchannelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaughtensureNotSharable, handlerAdded, isSharableprotected void decode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf in,
List<Object> out)
throws Exception
decode in class io.netty.handler.codec.ByteToMessageDecoderExceptionprotected void sendNext(io.netty.channel.ChannelHandlerContext ctx)
protected void decode(io.netty.buffer.ByteBuf in,
CommandData<Object,Object> data,
List<Object> parts,
io.netty.channel.Channel channel)
throws IOException
IOExceptionprotected void decodeResult(CommandData<Object,Object> data, List<Object> parts, io.netty.channel.Channel channel, Object result) throws IOException
IOExceptionprotected 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
IOExceptionpublic static long readLong(io.netty.buffer.ByteBuf is)
throws IOException
IOExceptionCopyright © 2014–2018 The Redisson Project. All rights reserved.