Package glide.api.models.commands.stream
Class StreamRange.IdBound
- java.lang.Object
-
- glide.api.models.commands.stream.StreamRange.IdBound
-
- All Implemented Interfaces:
StreamRange
- Enclosing interface:
- StreamRange
public static class StreamRange.IdBound extends java.lang.Object implements StreamRange
Stream ID used to specify a range of IDs to search. Stream ID bounds can be complete with a timestamp and sequence number separated by a dash ("-"), for example"1526985054069-0".
Stream ID bounds can also be incomplete, with just a timestamp.
Stream ID bounds are inclusive by default. WhenisInclusive==false, a"("is prepended for the Valkey API.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface glide.api.models.commands.stream.StreamRange
StreamRange.IdBound, StreamRange.InfRangeBound
-
-
Field Summary
-
Fields inherited from interface glide.api.models.commands.stream.StreamRange
EXCLUSIVE_RANGE_VALKEY_API, MAXIMUM_RANGE_VALKEY_API, MINIMUM_RANGE_VALKEY_API, RANGE_COUNT_VALKEY_API
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetValkeyApi()static StreamRange.IdBoundof(long timestamp)Creates an incomplete stream ID boundary without the sequence number for range search.static StreamRange.IdBoundof(GlideString id)Creates a stream ID boundary by stream id for range search.static StreamRange.IdBoundof(java.lang.String id)Creates a stream ID boundary by stream id for range search.static StreamRange.IdBoundofExclusive(long timestamp)Creates an incomplete stream ID exclusive boundary without the sequence number for range search.static StreamRange.IdBoundofExclusive(GlideString id)Creates a stream ID exclusive boundary by stream id for range search.static StreamRange.IdBoundofExclusive(java.lang.String id)Creates a stream ID exclusive boundary by stream id for range search.
-
-
-
Method Detail
-
of
public static StreamRange.IdBound of(java.lang.String id)
Creates a stream ID boundary by stream id for range search.- Parameters:
id- The stream id.
-
of
public static StreamRange.IdBound of(GlideString id)
Creates a stream ID boundary by stream id for range search.- Parameters:
id- The stream id.
-
of
public static StreamRange.IdBound of(long timestamp)
Creates an incomplete stream ID boundary without the sequence number for range search.- Parameters:
timestamp- The stream timestamp as ID.
-
ofExclusive
public static StreamRange.IdBound ofExclusive(long timestamp)
Creates an incomplete stream ID exclusive boundary without the sequence number for range search.- Parameters:
timestamp- The stream timestamp as ID.
-
ofExclusive
public static StreamRange.IdBound ofExclusive(java.lang.String id)
Creates a stream ID exclusive boundary by stream id for range search.- Parameters:
id- The stream id.
-
ofExclusive
public static StreamRange.IdBound ofExclusive(GlideString id)
Creates a stream ID exclusive boundary by stream id for range search.- Parameters:
id- The stream id.
-
getValkeyApi
public java.lang.String getValkeyApi()
- Specified by:
getValkeyApiin interfaceStreamRange
-
-