Class XGroupCreateArgs
java.lang.Object
io.quarkus.redis.datasource.stream.XGroupCreateArgs
- All Implemented Interfaces:
RedisCommandExtraArguments
Represents the extra argument of the <a href="https://redis.io/commands/xgroup-create/>XGROUP CREATE command.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionentriesRead
(String id) To enable consumer group lag tracking, specify the optionalentries_read
named argument with an arbitrary ID.mkstream()
If a stream does not exist, you can create it automatically with length of 0.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
-
XGroupCreateArgs
public XGroupCreateArgs()
-
-
Method Details
-
mkstream
If a stream does not exist, you can create it automatically with length of 0.- Returns:
- the current
XGroupCreateArgs
-
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.
-