@UnstableApi public final class RedisArrayAggregator extends io.netty.handler.codec.MessageToMessageDecoder<RedisMessage>
RedisMessage parts into ArrayRedisMessage. This decoder
should be used together with RedisDecoder.| Constructor and Description |
|---|
RedisArrayAggregator()
Deprecated.
Use
RedisArrayAggregator(int, int) instead to define a max size of the array to aggregate. |
RedisArrayAggregator(int maxElements,
int maxNestedArrayDepth)
Create a new instance that will aggregate an
ArrayHeaderRedisMessage
and its subsequent elements into an ArrayRedisMessage. |
| Modifier and Type | Method and Description |
|---|---|
void |
channelInactive(io.netty.channel.ChannelHandlerContext ctx) |
protected void |
decode(io.netty.channel.ChannelHandlerContext ctx,
RedisMessage msg,
List<Object> out) |
void |
handlerRemoved(io.netty.channel.ChannelHandlerContext ctx) |
acceptInboundMessage, channelRead, channelReadCompletechannelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredensureNotSharable, handlerAdded, isSharable@Deprecated public RedisArrayAggregator()
RedisArrayAggregator(int, int) instead to define a max size of the array to aggregate.ArrayHeaderRedisMessage
and its subsequent elements into an ArrayRedisMessage.
This constructor specifies a maximum number of elements of 1.000.000, but this default can be increased with the system property.
public RedisArrayAggregator(int maxElements,
int maxNestedArrayDepth)
ArrayHeaderRedisMessage
and its subsequent elements into an ArrayRedisMessage.
A CodecException will be thrown if the array header specify a length greater than
the given number of max elements.
maxElements - The maximum number of elements to aggregate in a single message.maxNestedArrayDepth - the maximum depth of the nested array before an exception will be thrownprotected void decode(io.netty.channel.ChannelHandlerContext ctx,
RedisMessage msg,
List<Object> out)
throws Exception
decode in class io.netty.handler.codec.MessageToMessageDecoder<RedisMessage>Exceptionpublic void handlerRemoved(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
handlerRemoved in interface io.netty.channel.ChannelHandlerhandlerRemoved in class io.netty.channel.ChannelHandlerAdapterExceptionCopyright © 2008–2026 The Netty Project. All rights reserved.