Class XReadGroupArgs

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

public class XReadGroupArgs extends Object implements RedisCommandExtraArguments
Represents the extra parameter of the invalid input: '<'a href="https://redis.io/commands/xreadgroup/>XREADGROUP command.
  • Constructor Details

    • XReadGroupArgs

      public XReadGroupArgs()
  • Method Details

    • count

      public XReadGroupArgs count(int count)
      Sets the max number of entries per stream to return
      Parameters:
      count - the count, must be positive
      Returns:
      the current XReadGroupArgs
    • block

      public XReadGroupArgs block(Duration block)
      Sets the max duration to wait for messages
      Parameters:
      block - the duration, must not null
      Returns:
      the current XReadGroupArgs
    • claim

      public XReadGroupArgs claim(Duration minIdleTime)
      Sets the CLAIM option with a minimum idle time. When set, the consumer will attempt to claim pending messages that have been idle for at least the specified duration before delivering new messages.

      This option is only effective when the stream id is >.

      Requires Redis 8.4+.

      Parameters:
      minIdleTime - the minimum idle time for claiming pending messages, must not be null
      Returns:
      the current XReadGroupArgs
    • noack

      public XReadGroupArgs noack()
      Avoids adding the message to the PEL in cases where reliability is not a requirement and the occasional message loss is acceptable. This is equivalent to acknowledging the message when it is read.
      Returns:
      the current XReadGroupArgs
    • toArgs

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