Class XReadArgs

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

public class XReadArgs extends Object implements RedisCommandExtraArguments
Represents the extra parameter of the <a href="https://redis.io/commands/xread/>XREAD command.
  • Constructor Details

    • XReadArgs

      public XReadArgs()
  • Method Details

    • count

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

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

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