Package org.redisson.api.stream
Class StreamTrimParams
java.lang.Object
org.redisson.api.stream.StreamTrimParams
- All Implemented Interfaces:
StreamTrimArgs,StreamTrimLimitArgs<StreamTrimArgs>,StreamTrimStrategyArgs<StreamTrimArgs>
public final class StreamTrimParams
extends Object
implements StreamTrimStrategyArgs<StreamTrimArgs>, StreamTrimArgs, StreamTrimLimitArgs<StreamTrimArgs>
- Author:
- Nikita Koksharov
-
Method Summary
Modifier and TypeMethodDescriptionintgetLimit()getMinId()limit(int size) Defines limit of evicted objects for trim command.maxLen(int threshold) Defines MAXLEN strategy used for Stream trimming.minId(StreamMessageId messageId) Defines MINID strategy used for Stream trimming.noLimit()Defines no limit of evicted objects for trim command.
-
Method Details
-
maxLen
Description copied from interface:StreamTrimStrategyArgsDefines MAXLEN strategy used for Stream trimming. Evicts entries which position exceeds the specified stream's length threshold.- Specified by:
maxLenin interfaceStreamTrimStrategyArgs<StreamTrimArgs>- Parameters:
threshold- - trim threshold- Returns:
- arguments object
-
minId
Description copied from interface:StreamTrimStrategyArgsDefines MINID strategy used for Stream trimming. Evicts entries with IDs lower than threshold, where threshold is a stream ID.- Specified by:
minIdin interfaceStreamTrimStrategyArgs<StreamTrimArgs>- Parameters:
messageId- - stream Id- Returns:
- arguments object
-
noLimit
Description copied from interface:StreamTrimLimitArgsDefines no limit of evicted objects for trim command.- Specified by:
noLimitin interfaceStreamTrimLimitArgs<StreamTrimArgs>- Returns:
- arguments object
-
limit
Description copied from interface:StreamTrimLimitArgsDefines limit of evicted objects for trim command.- Specified by:
limitin interfaceStreamTrimLimitArgs<StreamTrimArgs>- Parameters:
size- max amount of evicted objects- Returns:
- arguments object
-
getMaxLen
-
getMinId
-
getLimit
public int getLimit()
-