Package org.redisson.api.stream
Interface StreamMultiReadGroupArgs
-
public interface StreamMultiReadGroupArgs
Arguments object for RStream.readGroup() methods.- Author:
- Nikita Koksharov
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description StreamMultiReadGroupArgs
count(int count)
Defines stream data size limit.static StreamMultiReadGroupArgs
greaterThan(StreamMessageId id1, String stream2, StreamMessageId id2)
Defines to return messages of all Streams with ids greater than defined message ids.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.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.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.static StreamMultiReadGroupArgs
greaterThan(StreamMessageId id, Map<String,StreamMessageId> offsets)
Defines to return messages of all Streams with ids greater than defined message ids.StreamMultiReadGroupArgs
noAck()
Defines avoid of adding messages to Pending Entries List.StreamMultiReadGroupArgs
timeout(Duration timeout)
Defines time interval to wait for stream data availability.
-
-
-
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 streamstream2
- - name of 2nd streamid2
- - 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 streamstream2
- - name of 2nd streamid2
- - last stream id of 2nd streamstream3
- - name of 3rd streamid3
- - 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 streamstream2
- - name of 2nd streamid2
- - last stream id of 2nd streamstream3
- - name of 3rd streamid3
- - last stream id of 3rd streamstream4
- - name of 4th streamid4
- - 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 streamstream2
- - name of 2nd streamid2
- - last stream id of 2nd streamstream3
- - name of 3rd streamid3
- - last stream id of 3rd streamstream4
- - name of 4th streamid4
- - last stream id of 4th streamstream5
- - name of 4th streamid5
- - 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 streamoffsets
- - last stream id mapped by stream name- Returns:
- arguments object
-
-