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 |
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) |
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 decode(io.netty.buffer.ByteBuf in, CommandData<Object,Object> data, List<Object> parts, io.netty.channel.Channel channel) throws IOException
IOException
protected void decodeResult(CommandData<Object,Object> data, List<Object> parts, io.netty.channel.Channel channel, Object result) throws IOException
IOException
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–2017 The Redisson Project. All rights reserved.