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
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(java.util.List<RedisMessage> children)
Creates aArrayRedisMessage
for the givencontent
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<RedisMessage>
children()
Get children of this Arrays.protected void
deallocate()
Called onceAbstractReferenceCounted.refCnt()
is equals 0.boolean
isNull()
Returns whether the content of this message isnull
.java.lang.String
toString()
ArrayRedisMessage
touch(java.lang.Object hint)
Records the current access location of this object with an additional arbitrary information for debugging purposes.
-
-
-
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(java.util.List<RedisMessage> children)
Creates aArrayRedisMessage
for the givencontent
.- Parameters:
children
- the children.
-
-
Method Detail
-
children
public final java.util.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()
Description copied from class:AbstractReferenceCounted
Called onceAbstractReferenceCounted.refCnt()
is equals 0.- Specified by:
deallocate
in classAbstractReferenceCounted
-
touch
public ArrayRedisMessage touch(java.lang.Object hint)
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
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-