Package io.netty.handler.codec.redis
Class ArrayRedisMessage
- java.lang.Object
-
- io.netty.util.AbstractReferenceCounted
-
- io.netty.handler.codec.redis.ArrayRedisMessage
-
- All Implemented Interfaces:
RedisMessage,io.netty.util.ReferenceCounted
@UnstableApi public class ArrayRedisMessage extends io.netty.util.AbstractReferenceCounted implements RedisMessage
Arrays of RESP.
-
-
Field Summary
Fields Modifier and Type Field Description static ArrayRedisMessageEMPTY_INSTANCEA predefined empty array instance forArrayRedisMessage.static ArrayRedisMessageNULL_INSTANCEA predefined null array instance forArrayRedisMessage.
-
Constructor Summary
Constructors Constructor Description ArrayRedisMessage(List<RedisMessage> children)Creates aArrayRedisMessagefor the givencontent.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<RedisMessage>children()Get children of this Arrays.protected voiddeallocate()booleanisNull()Returns whether the content of this message isnull.StringtoString()ArrayRedisMessagetouch(Object hint)
-
-
-
Field Detail
-
NULL_INSTANCE
public static final ArrayRedisMessage NULL_INSTANCE
A predefined null array instance forArrayRedisMessage.
-
EMPTY_INSTANCE
public static final ArrayRedisMessage EMPTY_INSTANCE
A predefined empty array instance forArrayRedisMessage.
-
-
Constructor Detail
-
ArrayRedisMessage
public ArrayRedisMessage(List<RedisMessage> children)
Creates aArrayRedisMessagefor the givencontent.- Parameters:
children- the children.
-
-
Method Detail
-
children
public final List<RedisMessage> children()
Get children of this Arrays. It can be null or empty.- Returns:
- list of
RedisMessages.
-
isNull
public boolean isNull()
Returns whether the content of this message isnull.- Returns:
- indicates whether the content of this message is
null.
-
deallocate
protected void deallocate()
- Specified by:
deallocatein classio.netty.util.AbstractReferenceCounted
-
touch
public ArrayRedisMessage touch(Object hint)
- Specified by:
touchin interfaceio.netty.util.ReferenceCounted
-
-