Interface StreamMultiReadGroupArgs


  • public interface StreamMultiReadGroupArgs
    Arguments object for RStream.readGroup() methods.
    Author:
    Nikita Koksharov
    • Method Detail

      • noAck

        StreamMultiReadGroupArgs noAck()
        Defines avoid of adding messages to Pending Entries List.
        Returns:
        arguments object
      • count

        StreamMultiReadGroupArgs count(int count)
        Defines stream data size limit.
        Parameters:
        count - - stream data size limit
        Returns:
        arguments object
      • timeout

        StreamMultiReadGroupArgs timeout(Duration timeout)
        Defines time interval to wait for stream data availability.
        Parameters:
        timeout - - timeout duration
        Returns:
        arguments object
      • greaterThan

        static StreamMultiReadGroupArgs greaterThan(StreamMessageId id1,
                                                    String stream2,
                                                    StreamMessageId id2)
        Defines to return messages of all Streams with ids greater than defined message ids.
        Parameters:
        id1 - - last stream id of current stream
        stream2 - - name of 2nd stream
        id2 - - last stream id of 2nd stream
        Returns:
        arguments object
      • greaterThan

        static StreamMultiReadGroupArgs greaterThan(StreamMessageId id1,
                                                    String stream2,
                                                    StreamMessageId id2,
                                                    String stream3,
                                                    StreamMessageId id3)
        Defines to return messages of all Streams with ids greater than defined message ids.
        Parameters:
        id1 - - last stream id of current stream
        stream2 - - name of 2nd stream
        id2 - - last stream id of 2nd stream
        stream3 - - name of 3rd stream
        id3 - - last stream id of 3rd stream
        Returns:
        arguments object
      • greaterThan

        static StreamMultiReadGroupArgs greaterThan(StreamMessageId id1,
                                                    String stream2,
                                                    StreamMessageId id2,
                                                    String stream3,
                                                    StreamMessageId id3,
                                                    String stream4,
                                                    StreamMessageId id4)
        Defines to return messages of all Streams with ids greater than defined message ids.
        Parameters:
        id1 - - last stream id of current stream
        stream2 - - name of 2nd stream
        id2 - - last stream id of 2nd stream
        stream3 - - name of 3rd stream
        id3 - - last stream id of 3rd stream
        stream4 - - name of 4th stream
        id4 - - last stream id of 4th stream
        Returns:
        arguments object
      • greaterThan

        static StreamMultiReadGroupArgs greaterThan(StreamMessageId id1,
                                                    String stream2,
                                                    StreamMessageId id2,
                                                    String stream3,
                                                    StreamMessageId id3,
                                                    String stream4,
                                                    StreamMessageId id4,
                                                    String stream5,
                                                    StreamMessageId id5)
        Defines to return messages of all Streams with ids greater than defined message ids.
        Parameters:
        id1 - - last stream id of current stream
        stream2 - - name of 2nd stream
        id2 - - last stream id of 2nd stream
        stream3 - - name of 3rd stream
        id3 - - last stream id of 3rd stream
        stream4 - - name of 4th stream
        id4 - - last stream id of 4th stream
        stream5 - - name of 4th stream
        id5 - - last stream id of 4th stream
        Returns:
        arguments object
      • greaterThan

        static StreamMultiReadGroupArgs greaterThan(StreamMessageId id,
                                                    Map<String,StreamMessageId> offsets)
        Defines to return messages of all Streams with ids greater than defined message ids.
        Parameters:
        id - - last stream id of current stream
        offsets - - last stream id mapped by stream name
        Returns:
        arguments object