Class XAddCommand

    • Constructor Detail

      • XAddCommand

        public XAddCommand()
      • XAddCommand

        public XAddCommand​(byte[] key,
                           MaxLen maxLen,
                           byte[] id,
                           Map<byte[],​byte[]> fields)
      • XAddCommand

        public XAddCommand​(byte[] key,
                           MaxLen maxLen,
                           boolean nomkstream,
                           byte[] id,
                           Map<byte[],​byte[]> fields)
        Parameters:
        key - key
        maxLen - maxlen
        nomkstream - nomkstream since redis 6.2-rc1
        id - id or *
        fields - fields
        Since:
        3.5.0
      • XAddCommand

        public XAddCommand​(byte[] key,
                           MaxLen maxLen,
                           MinId minId,
                           Limit limit,
                           boolean nomkstream,
                           byte[] id,
                           Map<byte[],​byte[]> fields)
        Parameters:
        key - key
        maxLen - maxlen
        minId - minId
        limit - limit
        nomkstream - nomkstream since redis 6.2-rc2
        id - id or *
        fields - fields
        Since:
        3.5.2
    • Method Detail

      • getMaxLen

        public MaxLen getMaxLen()
      • setMaxLen

        public void setMaxLen​(MaxLen maxLen)
      • getMinId

        public MinId getMinId()
        Returns:
        min id
        Since:
        3.5.2
      • setMinId

        public void setMinId​(MinId minId)
        Parameters:
        minId - minId
        Since:
        3.5.2
      • getLimit

        public Limit getLimit()
        Returns:
        limit
        Since:
        3.5.2
      • setLimit

        public void setLimit​(Limit limit)
        Parameters:
        limit - limit
        Since:
        3.5.2
      • isNomkstream

        public boolean isNomkstream()
        Returns:
        nomkstream
        Since:
        3.5.0
      • setNomkstream

        public void setNomkstream​(boolean nomkstream)
        Parameters:
        nomkstream - nomkstream since redis 6.2
        Since:
        3.5.0
      • getId

        public byte[] getId()
      • setId

        public void setId​(byte[] id)
      • getFields

        public Map<byte[],​byte[]> getFields()
      • setFields

        public void setFields​(Map<byte[],​byte[]> fields)