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 ArrayRedisMessageEMPTY_INSTANCEA predefined empty array instance forArrayRedisMessage.static ArrayRedisMessageNULL_INSTANCEA predefined null array instance forArrayRedisMessage.
-
Constructor Summary
Constructors Constructor Description ArrayRedisMessage(java.util.List<RedisMessage> children)Creates aArrayRedisMessagefor 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 voiddeallocate()Called onceAbstractReferenceCounted.refCnt()is equals 0.booleanisNull()Returns whether the content of this message isnull.java.lang.StringtoString()ArrayRedisMessagetouch(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 aArrayRedisMessagefor 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
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()
Description copied from class:AbstractReferenceCountedCalled onceAbstractReferenceCounted.refCnt()is equals 0.- Specified by:
deallocatein classAbstractReferenceCounted
-
touch
public ArrayRedisMessage touch(java.lang.Object hint)
Description copied from interface:ReferenceCountedRecords 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:
touchin interfaceReferenceCounted
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-