GeezerVison is showing netty.io — RedisDecoder (Netty API Reference (4.1.141.Final))
Class RedisDecoder
-
-
-
Constructor Summary
Constructors
Constructor
Description
Creates a new instance with default maxInlineMessageLength and messagePool
and inline command decoding disabled.
Creates a new instance with default maxInlineMessageLength and messagePool.
Creates a new instance with inline command decoding disabled.
-
Method Summary
Modifier and Type
Method
Description
protected void
Decode the from one ByteBuf to an other.
actualReadableBytes, callDecode, channelInactive, channelRead, channelReadComplete, decodeLast, discardSomeReadBytes, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecode, userEventTriggered
Modifier and Type
Method
Description
protected int
Returns the actual number of readable bytes in the internal cumulative
buffer of this decoder.
protected void
Called once data should be decoded from the given ByteBuf.
void
void
void
protected void
protected final void
final void
Do nothing by default, sub-classes may override this method.
protected void
Gets called after the ByteToMessageDecoder was removed from the actual context and it doesn't handle
events anymore.
Returns the internal cumulative buffer of this decoder.
boolean
void
void
void
void
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
RedisDecoder
public RedisDecoder()
Creates a new instance with default maxInlineMessageLength and messagePool
and inline command decoding disabled.
-
RedisDecoder
public RedisDecoder(boolean decodeInlineCommands)
Creates a new instance with default maxInlineMessageLength and messagePool.
- Parameters:
decodeInlineCommands - if true, inline commands will be decoded.
-
RedisDecoder
Creates a new instance with inline command decoding disabled.
- Parameters:
maxInlineMessageLength - the maximum length of inline message.
messagePool - the predefined message pool.
-
RedisDecoder
public RedisDecoder(int maxInlineMessageLength,
RedisMessagePool messagePool,
boolean decodeInlineCommands)
Creates a new instance.
- Parameters:
maxInlineMessageLength - the maximum length of inline message.
messagePool - the predefined message pool.
decodeInlineCommands - if true, inline commands will be decoded.
-
|