Class XGroupSetIdArgs

java.lang.Object
io.quarkus.redis.datasource.stream.XGroupSetIdArgs
All Implemented Interfaces:
RedisCommandExtraArguments

public class XGroupSetIdArgs extends Object implements RedisCommandExtraArguments
Represents the extra argument of the <a href="https://redis.io/commands/xgroup-setid/>XGROUP SETID command.
  • Constructor Details

    • XGroupSetIdArgs

      public XGroupSetIdArgs()
  • Method Details

    • entriesRead

      public XGroupSetIdArgs entriesRead(long id)
      To enable consumer group lag tracking, specify the optional entries_read named argument with an arbitrary ID. An arbitrary ID is any ID that isn't the ID of the stream's first entry, last entry, or zero ("0-0") ID. Use it to find out how many entries are between the arbitrary ID (excluding it) and the stream's last entry. Set the entries_read the stream's entries_added subtracted by the number of entries.

      Requires REdis 7.0.0+

      Parameters:
      id - the arbitrary id
      Returns:
      the current XGroupCreateArgs
    • toArgs

      public List<Object> toArgs()
      Specified by:
      toArgs in interface RedisCommandExtraArguments
      Returns:
      the list of arguments.