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 ArrayRedisMessage
EMPTY_INSTANCE
A predefined empty array instance forArrayRedisMessage
.static ArrayRedisMessage
NULL_INSTANCE
A predefined null array instance forArrayRedisMessage
.
-
Constructor Summary
Constructors Constructor Description ArrayRedisMessage(List<RedisMessage> children)
Creates aArrayRedisMessage
for the givencontent
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<RedisMessage>
children()
Get children of this Arrays.protected void
deallocate()
boolean
isNull()
Returns whether the content of this message isnull
.String
toString()
ArrayRedisMessage
touch(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 aArrayRedisMessage
for 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
RedisMessage
s.
-
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:
deallocate
in classio.netty.util.AbstractReferenceCounted
-
touch
public ArrayRedisMessage touch(Object hint)
- Specified by:
touch
in interfaceio.netty.util.ReferenceCounted
-
-