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 ArrayRedisMessageA predefined empty array instance forArrayRedisMessage.static final ArrayRedisMessageA predefined null array instance forArrayRedisMessage. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateArrayRedisMessage(List<RedisMessage> children) Creates aArrayRedisMessagefor the givencontent. -
Method Summary
Modifier and TypeMethodDescriptionfinal List<RedisMessage> children()Get children of this Arrays.protected voidCalled onceAbstractReferenceCounted.refCnt()is equals 0.booleanisNull()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 aArrayRedisMessagefor the givencontent.- Parameters:
children- the children.
-
-
Method Details
-
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
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
-