Class XGroupSetIdArgs
java.lang.Object
io.quarkus.redis.datasource.stream.XGroupSetIdArgs
- All Implemented Interfaces:
RedisCommandExtraArguments
Represents the extra argument of the <a href="https://redis.io/commands/xgroup-setid/>XGROUP SETID command.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionentriesRead
(long id) To enable consumer group lag tracking, specify the optionalentries_read
named argument with an arbitrary ID.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
-
Constructor Details
-
XGroupSetIdArgs
public XGroupSetIdArgs()
-
-
Method Details
-
entriesRead
To enable consumer group lag tracking, specify the optionalentries_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 theentries_read
the stream'sentries_added
subtracted by the number of entries.Requires REdis 7.0.0+
- Parameters:
id
- the arbitrary id- Returns:
- the current
XGroupCreateArgs
-
toArgs
- Specified by:
toArgs
in interfaceRedisCommandExtraArguments
- Returns:
- the list of arguments.
-