@UnstableApi
public final class RedisDecoder
extends io.netty.handler.codec.ByteToMessageDecoder
RedisMessage
objects following
RESP (REdis Serialization Protocol).
RedisMessage
parts can be aggregated to RedisMessage
using
RedisArrayAggregator
or processed directly.Constructor and Description |
---|
RedisDecoder()
Creates a new instance with default
maxInlineMessageLength and messagePool
and inline command decoding disabled. |
RedisDecoder(boolean decodeInlineCommands)
Creates a new instance with default
maxInlineMessageLength and messagePool . |
RedisDecoder(int maxInlineMessageLength,
RedisMessagePool messagePool)
Creates a new instance with inline command decoding disabled.
|
RedisDecoder(int maxInlineMessageLength,
RedisMessagePool messagePool,
boolean decodeInlineCommands)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected void |
decode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf in,
List<Object> out) |
actualReadableBytes, callDecode, channelInactive, channelRead, channelReadComplete, decodeLast, discardSomeReadBytes, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecode, userEventTriggered
channelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught
ensureNotSharable, handlerAdded, isSharable
public RedisDecoder()
maxInlineMessageLength
and messagePool
and inline command decoding disabled.public RedisDecoder(boolean decodeInlineCommands)
maxInlineMessageLength
and messagePool
.decodeInlineCommands
- if true
, inline commands will be decoded.public RedisDecoder(int maxInlineMessageLength, RedisMessagePool messagePool)
maxInlineMessageLength
- the maximum length of inline message.messagePool
- the predefined message pool.public RedisDecoder(int maxInlineMessageLength, RedisMessagePool messagePool, boolean decodeInlineCommands)
maxInlineMessageLength
- the maximum length of inline message.messagePool
- the predefined message pool.decodeInlineCommands
- if true
, inline commands will be decoded.Copyright © 2008–2018 The Netty Project. All rights reserved.