Class XTrimArgs
java.lang.Object
io.quarkus.redis.datasource.stream.XTrimArgs
- All Implemented Interfaces:
RedisCommandExtraArguments
The argument of the XTRIM command.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlimit
(long limit) Sets the maximum entries that can get evicted.maxlen
(long maxlen) Sets the max length of the stream.Evicts entries from the stream having IDs lower to the specified one.When set, prefix themaxlen
with~
to enable the almost exact trimming.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
-
XTrimArgs
public XTrimArgs()
-
-
Method Details
-
maxlen
Sets the max length of the stream.- Parameters:
maxlen
- the max length of the stream, must be positive- Returns:
- the current
XAddArgs
-
nearlyExactTrimming
When set, prefix themaxlen
with~
to enable the almost exact trimming. This is recommended when usingmaxlen(long)
.- Returns:
- the current
XAddArgs
-
minid
Evicts entries from the stream having IDs lower to the specified one.- Parameters:
minid
- the min id, must not benull
, must be a valid stream id- Returns:
- the current
XAddArgs
-
limit
Sets the maximum entries that can get evicted.- Parameters:
limit
- the limit, must be positive- Returns:
- the current
XAddArgs
-
toArgs
- Specified by:
toArgs
in interfaceRedisCommandExtraArguments
- Returns:
- the list of arguments.
-