public class CommandDecoder extends io.netty.handler.codec.ReplayingDecoder<State>
Constructor and Description |
---|
CommandDecoder(ExecutorService executor) |
Modifier and Type | Method and Description |
---|---|
void |
addPubSubCommand(String channel,
CommandData<Object,Object> data) |
protected void |
decode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf in,
List<Object> out) |
io.netty.buffer.ByteBuf |
readBytes(io.netty.buffer.ByteBuf is) |
static long |
readLong(io.netty.buffer.ByteBuf is) |
callDecode, checkpoint, checkpoint, state, state
actualReadableBytes, channelInactive, channelRead, channelReadComplete, decodeLast, discardSomeReadBytes, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecode, userEventTriggered
channelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught
public static final char CR
public static final char LF
public CommandDecoder(ExecutorService executor)
public void addPubSubCommand(String channel, CommandData<Object,Object> data)
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
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.