Class 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. When isInclusive==false, a "(" is prepended for the Valkey API.
    • 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.