Package org.redisson.api.stream
Interface StreamTrimArgs
-
public interface StreamTrimArgsArguments object for Stream trim method.- Author:
- Nikita Koksharov
-
-
Method Summary
Static Methods Modifier and Type Method Description static StreamTrimLimitArgs<StreamTrimArgs>maxLen(int threshold)Defines MAXLEN strategy used for Stream trimming.static StreamTrimLimitArgs<StreamTrimArgs>minId(StreamMessageId messageId)Defines MINID strategy used for Stream trimming.
-
-
-
Method Detail
-
maxLen
static StreamTrimLimitArgs<StreamTrimArgs> maxLen(int threshold)
Defines MAXLEN strategy used for Stream trimming. Evicts entries which position exceeds the specified stream's length threshold.- Parameters:
threshold- - trim threshold- Returns:
- arguments object
-
minId
static StreamTrimLimitArgs<StreamTrimArgs> minId(StreamMessageId messageId)
Defines MINID strategy used for Stream trimming. Evicts entries with IDs lower than threshold, where threshold is a stream ID.- Parameters:
messageId- - stream Id- Returns:
- arguments object
-
-