Class XReadGroupArgs
java.lang.Object
io.quarkus.redis.datasource.stream.XReadGroupArgs
- All Implemented Interfaces:
RedisCommandExtraArguments
Represents the extra parameter of the invalid input: '<'a href="https://redis.io/commands/xreadgroup/>XREADGROUP command.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the max duration to wait for messagesSets the CLAIM option with a minimum idle time.count(int count) Sets the max number of entries per stream to returnnoack()Avoids adding the message to the PEL in cases where reliability is not a requirement and the occasional message loss is acceptable.toArgs()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.quarkus.redis.datasource.RedisCommandExtraArguments
toArgs
-
Constructor Details
-
XReadGroupArgs
public XReadGroupArgs()
-
-
Method Details
-
count
Sets the max number of entries per stream to return- Parameters:
count- the count, must be positive- Returns:
- the current
XReadGroupArgs
-
block
Sets the max duration to wait for messages- Parameters:
block- the duration, must notnull- Returns:
- the current
XReadGroupArgs
-
claim
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 benull- Returns:
- the current
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
- Specified by:
toArgsin interfaceRedisCommandExtraArguments- Returns:
- the list of arguments.
-