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-
-
Constructor Summary
Constructors Constructor Description XReadGroupArgs()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XReadGroupArgsblock(Duration block)Sets the max duration to wait for messagesXReadGroupArgscount(int count)Sets the max number of entries per stream to returnXReadGroupArgsnoack()Avoids adding the message to the PEL in cases where reliability is not a requirement and the occasional message loss is acceptable.List<String>toArgs()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.quarkus.redis.datasource.RedisCommandExtraArguments
toArgs
-
-
-
-
Method Detail
-
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 notnull- 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<String> toArgs()
- Specified by:
toArgsin interfaceRedisCommandExtraArguments- Returns:
- the list of arguments, encoded as a list of String.
-
-