Package glide.api.models.commands.stream
Class StreamTrimOptions.MinId
- java.lang.Object
-
- glide.api.models.commands.stream.StreamTrimOptions
-
- glide.api.models.commands.stream.StreamTrimOptions.MinId
-
- Enclosing class:
- StreamTrimOptions
public static class StreamTrimOptions.MinId extends StreamTrimOptions
Option to trim the stream according to minimum ID.
-
-
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 MinId(boolean exact, @NonNull GlideString threshold)Create a trim option to trim stream based on stream ID.MinId(boolean exact, @NonNull java.lang.String threshold)Create a trim option to trim stream based on stream ID.MinId(@NonNull GlideString threshold)Create a trim option to trim stream based on stream ID.MinId(@NonNull GlideString threshold, long limit)Create a trim option to trim stream based on stream ID.MinId(@NonNull java.lang.String threshold)Create a trim option to trim stream based on stream ID.MinId(@NonNull java.lang.String threshold, long limit)Create a trim option to trim stream based on stream ID.
-
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
-
MinId
public MinId(@NonNull @NonNull java.lang.String threshold)Create a trim option to trim stream based on stream ID.- Parameters:
threshold- Comparison id.
-
MinId
public MinId(@NonNull @NonNull GlideString threshold)Create a trim option to trim stream based on stream ID.- Parameters:
threshold- Comparison id.
-
MinId
public MinId(boolean exact, @NonNull @NonNull java.lang.String threshold)Create a trim option to trim stream based on stream ID.- Parameters:
exact- Whether to match exactly on the threshold.threshold- Comparison id.
-
MinId
public MinId(boolean exact, @NonNull @NonNull GlideString threshold)Create a trim option to trim stream based on stream ID.- Parameters:
exact- Whether to match exactly on the threshold.threshold- Comparison id.
-
MinId
public MinId(@NonNull @NonNull java.lang.String threshold, long limit)Create a trim option to trim stream based on stream ID.- Parameters:
threshold- Comparison id.limit- Max number of stream entries to be trimmed for non-exact match.
-
MinId
public MinId(@NonNull @NonNull GlideString threshold, long limit)Create a trim option to trim stream based on stream ID.- Parameters:
threshold- Comparison id.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
-
-