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 Details

  • Constructor Details

    • ArrayRedisMessage

      private ArrayRedisMessage()
    • ArrayRedisMessage

      public ArrayRedisMessage(java.util.List<RedisMessage> children)
      Creates a ArrayRedisMessage for the given content.
      Parameters:
      children - the children.
  • Method Details

    • 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 is null.
      Returns:
      indicates whether the content of this message is null.
    • deallocate

      protected void deallocate()
      Description copied from class: AbstractReferenceCounted
      Called once AbstractReferenceCounted.refCnt() is equals 0.
      Specified by:
      deallocate in class AbstractReferenceCounted
    • 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 via ResourceLeakDetector.
      Specified by:
      touch in interface ReferenceCounted
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object