Package org.redisson.api.stream
Interface StreamReadArgs
- All Known Implementing Classes:
StreamReadParams
public interface StreamReadArgs
Arguments object for RStream.read() methods.
- Author:
- Nikita Koksharov
-
Method Summary
Modifier and TypeMethodDescriptioncount(int count) Defines stream data size limit.static StreamReadArgsDefines last stream id received from current Stream.Defines time interval to wait for stream data availability.
-
Method Details
-
count
Defines stream data size limit.- Parameters:
count- stream data size limit- Returns:
- arguments object
-
timeout
Defines time interval to wait for stream data availability.0is used to wait infinitely.- Parameters:
timeout- timeout duration- Returns:
- arguments object
-
greaterThan
Defines last stream id received from current Stream. Read stream data with ids greater than defined id.- Parameters:
id0- last stream id of current stream- Returns:
- arguments object
-