Package glide.api.models.commands.stream
Class StreamTrimOptions.MaxLen
- java.lang.Object
-
- glide.api.models.commands.stream.StreamTrimOptions
-
- glide.api.models.commands.stream.StreamTrimOptions.MaxLen
-
- Enclosing class:
- StreamTrimOptions
public static class StreamTrimOptions.MaxLen extends StreamTrimOptions
Option to trim the stream according to maximum stream length.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class glide.api.models.commands.stream.StreamTrimOptions
StreamTrimOptions.MaxLen, StreamTrimOptions.MinId
-
-
Field Summary
-
Fields inherited from class glide.api.models.commands.stream.StreamTrimOptions
exact, limit, TRIM_EXACT_VALKEY_API, TRIM_LIMIT_VALKEY_API, TRIM_MAXLEN_VALKEY_API, TRIM_MINID_VALKEY_API, TRIM_NOT_EXACT_VALKEY_API
-
-
Constructor Summary
Constructors Constructor Description MaxLen(boolean exact, long threshold)Create a Max Length trim option to trim stream based on length.MaxLen(long threshold)Create a Max Length trim option to trim stream based on length.MaxLen(long threshold, long limit)Create a Max Length trim option to trim stream entries exceeds the threshold.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringgetMethod()protected java.lang.StringgetThreshold()-
Methods inherited from class glide.api.models.commands.stream.StreamTrimOptions
getValkeyApi, toArgs, toGlideStringArgs
-
-
-
-
Constructor Detail
-
MaxLen
public MaxLen(long threshold)
Create a Max Length trim option to trim stream based on length.- Parameters:
threshold- Comparison count.
-
MaxLen
public MaxLen(boolean exact, long threshold)Create a Max Length trim option to trim stream based on length.- Parameters:
exact- Whether to match exactly on the threshold.threshold- Comparison count.
-
MaxLen
public MaxLen(long threshold, long limit)Create a Max Length trim option to trim stream entries exceeds the threshold.- Parameters:
threshold- Comparison count.limit- Max number of stream entries to be trimmed for non-exact match.
-
-
Method Detail
-
getMethod
protected java.lang.String getMethod()
- Specified by:
getMethodin classStreamTrimOptions
-
getThreshold
protected java.lang.String getThreshold()
- Specified by:
getThresholdin classStreamTrimOptions
-
-