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
,ReferenceCounted
@UnstableApi
public class ArrayRedisMessage
extends AbstractReferenceCounted
implements RedisMessage
Arrays of RESP.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List
<RedisMessage> static final ArrayRedisMessage
A predefined empty array instance forArrayRedisMessage
.static final ArrayRedisMessage
A predefined null array instance forArrayRedisMessage
. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ArrayRedisMessage
(List<RedisMessage> children) Creates aArrayRedisMessage
for the givencontent
. -
Method Summary
Modifier and TypeMethodDescriptionfinal List
<RedisMessage> children()
Get children of this Arrays.protected void
Called onceAbstractReferenceCounted.refCnt()
is equals 0.boolean
isNull()
Returns whether the content of this message isnull
.toString()
Records the current access location of this object with an additional arbitrary information for debugging purposes.
-
Field Details
-
children
-
NULL_INSTANCE
A predefined null array instance forArrayRedisMessage
. -
EMPTY_INSTANCE
A predefined empty array instance forArrayRedisMessage
.
-
-
Constructor Details
-
ArrayRedisMessage
private ArrayRedisMessage() -
ArrayRedisMessage
Creates aArrayRedisMessage
for the givencontent
.- Parameters:
children
- the children.
-
-
Method Details
-
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()Description copied from class:AbstractReferenceCounted
Called onceAbstractReferenceCounted.refCnt()
is equals 0.- Specified by:
deallocate
in classAbstractReferenceCounted
-
touch
Description copied from interface:ReferenceCounted
Records the current access location of this object with an additional arbitrary information for debugging purposes. If this object is determined to be leaked, the information recorded by this operation will be provided to you viaResourceLeakDetector
.- Specified by:
touch
in interfaceReferenceCounted
-
toString
-