K
- key typeV
- value typeRExpirableReactive
, RObjectReactive
RedissonStreamReactive
public interface RStreamReactive<K,V> extends RExpirableReactive
Requires Redis 5.0.0 and higher.
Modifier and Type | Method | Description |
---|---|---|
org.reactivestreams.Publisher<Long> |
ack(String groupName,
StreamId... ids) |
Marks pending messages by group name and stream
ids as correctly processed. |
org.reactivestreams.Publisher<StreamId> |
add(K key,
V value) |
Appends a new entry and returns generated Stream ID
|
org.reactivestreams.Publisher<StreamId> |
add(K key,
V value,
int trimLen,
boolean trimStrict) |
Appends a new entry and returns generated Stream ID.
|
org.reactivestreams.Publisher<Void> |
add(StreamId id,
K key,
V value) |
Appends a new entry by specified Stream ID
|
org.reactivestreams.Publisher<Void> |
add(StreamId id,
K key,
V value,
int trimLen,
boolean trimStrict) |
Appends a new entry by specified Stream ID.
|
org.reactivestreams.Publisher<StreamId> |
addAll(Map<K,V> entries) |
Appends new entries and returns generated Stream ID
|
org.reactivestreams.Publisher<StreamId> |
addAll(Map<K,V> entries,
int trimLen,
boolean trimStrict) |
Appends new entries and returns generated Stream ID.
|
org.reactivestreams.Publisher<Void> |
addAll(StreamId id,
Map<K,V> entries) |
Appends new entries by specified Stream ID
|
org.reactivestreams.Publisher<Void> |
addAll(StreamId id,
Map<K,V> entries,
int trimLen,
boolean trimStrict) |
Appends new entries by specified Stream ID.
|
org.reactivestreams.Publisher<Map<StreamId,Map<K,V>>> |
claim(String groupName,
String consumerName,
long idleTime,
TimeUnit idleTimeUnit,
StreamId... ids) |
Transfers ownership of pending messages by id to a new consumer
by name if idle time of messages is greater than defined value.
|
org.reactivestreams.Publisher<Void> |
createGroup(String groupName) |
Creates consumer group by name.
|
org.reactivestreams.Publisher<Void> |
createGroup(String groupName,
StreamId id) |
Creates consumer group by name and stream id.
|
org.reactivestreams.Publisher<PendingResult> |
listPending(String groupName) |
Returns pending messages by group name
|
org.reactivestreams.Publisher<List<PendingEntry>> |
listPending(String groupName,
StreamId startId,
StreamId endId,
int count) |
Returns list of pending messages by group name.
|
org.reactivestreams.Publisher<List<PendingEntry>> |
listPending(String groupName,
StreamId startId,
StreamId endId,
int count,
String consumerName) |
Returns list of pending messages by group name and consumer name.
|
org.reactivestreams.Publisher<Map<StreamId,Map<K,V>>> |
range(int count,
StreamId startId,
StreamId endId) |
Read stream data in range by specified start Stream ID (included) and end Stream ID (included).
|
org.reactivestreams.Publisher<Map<StreamId,Map<K,V>>> |
range(StreamId startId,
StreamId endId) |
Read stream data in range by specified start Stream ID (included) and end Stream ID (included).
|
org.reactivestreams.Publisher<Map<StreamId,Map<K,V>>> |
rangeReversed(int count,
StreamId startId,
StreamId endId) |
Read stream data in reverse order in range by specified start Stream ID (included) and end Stream ID (included).
|
org.reactivestreams.Publisher<Map<StreamId,Map<K,V>>> |
rangeReversed(StreamId startId,
StreamId endId) |
Read stream data in reverse order in range by specified start Stream ID (included) and end Stream ID (included).
|
org.reactivestreams.Publisher<Map<StreamId,Map<K,V>>> |
read(int count,
long timeout,
TimeUnit unit,
StreamId... ids) |
Read stream data by specified collection of Stream IDs.
|
org.reactivestreams.Publisher<Map<String,Map<StreamId,Map<K,V>>>> |
read(int count,
long timeout,
TimeUnit unit,
StreamId id,
String name2,
StreamId id2) |
Read stream data by specified stream name including this stream.
|
org.reactivestreams.Publisher<Map<String,Map<StreamId,Map<K,V>>>> |
read(int count,
long timeout,
TimeUnit unit,
StreamId id,
String name2,
StreamId id2,
String name3,
StreamId id3) |
Read stream data by specified stream names including this stream.
|
org.reactivestreams.Publisher<Map<String,Map<StreamId,Map<K,V>>>> |
read(int count,
long timeout,
TimeUnit unit,
StreamId id,
Map<String,StreamId> nameToId) |
Read stream data by specified stream id mapped by name including this stream.
|
org.reactivestreams.Publisher<Map<StreamId,Map<K,V>>> |
read(int count,
StreamId... ids) |
Read stream data by specified collection of Stream IDs.
|
org.reactivestreams.Publisher<Map<String,Map<StreamId,Map<K,V>>>> |
read(int count,
StreamId id,
String name2,
StreamId id2) |
Read stream data by specified stream name including this stream.
|
org.reactivestreams.Publisher<Map<String,Map<StreamId,Map<K,V>>>> |
read(int count,
StreamId id,
String name2,
StreamId id2,
String name3,
StreamId id3) |
Read stream data by specified stream names including this stream.
|
org.reactivestreams.Publisher<Map<String,Map<StreamId,Map<K,V>>>> |
read(int count,
StreamId id,
Map<String,StreamId> nameToId) |
Read stream data by specified stream id mapped by name including this stream.
|
org.reactivestreams.Publisher<Map<StreamId,Map<K,V>>> |
read(long timeout,
TimeUnit unit,
StreamId... ids) |
Read stream data by specified collection of Stream IDs.
|
org.reactivestreams.Publisher<Map<String,Map<StreamId,Map<K,V>>>> |
read(long timeout,
TimeUnit unit,
StreamId id,
String name2,
StreamId id2) |
Read stream data by specified stream name including this stream.
|
org.reactivestreams.Publisher<Map<String,Map<StreamId,Map<K,V>>>> |
read(long timeout,
TimeUnit unit,
StreamId id,
String name2,
StreamId id2,
String name3,
StreamId id3) |
Read stream data by specified stream names including this stream.
|
org.reactivestreams.Publisher<Map<String,Map<StreamId,Map<K,V>>>> |
read(long timeout,
TimeUnit unit,
StreamId id,
Map<String,StreamId> nameToId) |
Read stream data by specified stream id mapped by name including this stream.
|
org.reactivestreams.Publisher<Map<StreamId,Map<K,V>>> |
read(StreamId... ids) |
Read stream data by specified collection of Stream IDs.
|
org.reactivestreams.Publisher<Map<String,Map<StreamId,Map<K,V>>>> |
read(StreamId id,
String name2,
StreamId id2) |
Read stream data by specified stream name including this stream.
|
org.reactivestreams.Publisher<Map<String,Map<StreamId,Map<K,V>>>> |
read(StreamId id,
String name2,
StreamId id2,
String name3,
StreamId id3) |
Read stream data by specified stream names including this stream.
|
org.reactivestreams.Publisher<Map<String,Map<StreamId,Map<K,V>>>> |
read(StreamId id,
Map<String,StreamId> nameToId) |
Read stream data by specified stream id mapped by name including this stream.
|
org.reactivestreams.Publisher<Map<StreamId,Map<K,V>>> |
readGroup(String groupName,
String consumerName,
int count,
long timeout,
TimeUnit unit,
StreamId... ids) |
Read stream data from
groupName by consumerName and specified collection of Stream IDs. |
org.reactivestreams.Publisher<Map<StreamId,Map<K,V>>> |
readGroup(String groupName,
String consumerName,
int count,
StreamId... ids) |
Read stream data from
groupName by consumerName and specified collection of Stream IDs. |
org.reactivestreams.Publisher<Map<StreamId,Map<K,V>>> |
readGroup(String groupName,
String consumerName,
long timeout,
TimeUnit unit,
StreamId... ids) |
Read stream data from
groupName by consumerName and specified collection of Stream IDs. |
org.reactivestreams.Publisher<Map<StreamId,Map<K,V>>> |
readGroup(String groupName,
String consumerName,
StreamId... ids) |
Read stream data from
groupName by consumerName and specified collection of Stream IDs. |
org.reactivestreams.Publisher<Long> |
size() |
Returns number of entries in stream
|
clearExpire, expire, expireAt, expireAt, remainTimeToLive
org.reactivestreams.Publisher<Void> createGroup(String groupName)
groupName
- - name of grouporg.reactivestreams.Publisher<Void> createGroup(String groupName, StreamId id)
id
will be available for consumers of this group.
StreamId.NEWEST
is used for messages arrived since the moment of group creating
groupName
- - name of grouporg.reactivestreams.Publisher<Long> ack(String groupName, StreamId... ids)
ids
as correctly processed.groupName
- - name of groupids
- - stream idsorg.reactivestreams.Publisher<PendingResult> listPending(String groupName)
groupName
- - name of grouporg.reactivestreams.Publisher<List<PendingEntry>> listPending(String groupName, StreamId startId, StreamId endId, int count)
StreamId.MAX
is used as max stream id
StreamId.MIN
is used as min stream id
groupName
- - name of groupstartId
- - start stream idendId
- - end stream idcount
- - amount of messagesorg.reactivestreams.Publisher<List<PendingEntry>> listPending(String groupName, StreamId startId, StreamId endId, int count, String consumerName)
StreamId.MAX
is used as max stream id
StreamId.MIN
is used as min stream id
consumerName
- - name of consumergroupName
- - name of groupstartId
- - start stream idendId
- - end stream idcount
- - amount of messagesorg.reactivestreams.Publisher<Map<StreamId,Map<K,V>>> claim(String groupName, String consumerName, long idleTime, TimeUnit idleTimeUnit, StreamId... ids)
groupName
- - name of groupconsumerName
- - name of consumeridleTime
- - minimum idle time of messagesidleTimeUnit
- - idle time unitids
- - stream idsorg.reactivestreams.Publisher<Map<StreamId,Map<K,V>>> readGroup(String groupName, String consumerName, StreamId... ids)
groupName
by consumerName
and specified collection of Stream IDs.ids
- - collection of Stream IDsorg.reactivestreams.Publisher<Map<StreamId,Map<K,V>>> readGroup(String groupName, String consumerName, int count, StreamId... ids)
groupName
by consumerName
and specified collection of Stream IDs.count
- - stream data size limitids
- - collection of Stream IDsorg.reactivestreams.Publisher<Map<StreamId,Map<K,V>>> readGroup(String groupName, String consumerName, long timeout, TimeUnit unit, StreamId... ids)
groupName
by consumerName
and specified collection of Stream IDs.
Wait for stream data availability for specified timeout
interval.timeout
- - time interval to wait for stream data availabilityunit
- - time interval unitids
- - collection of Stream IDsorg.reactivestreams.Publisher<Map<StreamId,Map<K,V>>> readGroup(String groupName, String consumerName, int count, long timeout, TimeUnit unit, StreamId... ids)
groupName
by consumerName
and specified collection of Stream IDs.
Wait for stream data availability for specified timeout
interval.count
- - stream data size limittimeout
- - time interval to wait for stream data availabilityunit
- - time interval unitids
- - collection of Stream IDsorg.reactivestreams.Publisher<Long> size()
org.reactivestreams.Publisher<StreamId> add(K key, V value)
key
- - key of entryvalue
- - value of entryorg.reactivestreams.Publisher<Void> add(StreamId id, K key, V value)
id
- - Stream IDkey
- - key of entryvalue
- - value of entryorg.reactivestreams.Publisher<StreamId> add(K key, V value, int trimLen, boolean trimStrict)
trimLen
size.
If trimStrict
is false
then trims to few tens of entries more than specified length to trim.key
- - key of entryvalue
- - value of entrytrimLen
- - length to trimtrimStrict
- - if false
then trims to few tens of entries more than specified length to trimorg.reactivestreams.Publisher<Void> add(StreamId id, K key, V value, int trimLen, boolean trimStrict)
trimLen
size.
If trimStrict
is false
then trims to few tens of entries more than specified length to trim.id
- - Stream IDkey
- - key of entryvalue
- - value of entrytrimLen
- - length to trimtrimStrict
- - if false
then trims to few tens of entries more than specified length to trimorg.reactivestreams.Publisher<StreamId> addAll(Map<K,V> entries)
entries
- - entries to addorg.reactivestreams.Publisher<Void> addAll(StreamId id, Map<K,V> entries)
id
- - Stream IDentries
- - entries to addorg.reactivestreams.Publisher<StreamId> addAll(Map<K,V> entries, int trimLen, boolean trimStrict)
trimLen
size.
If trimStrict
is false
then trims to few tens of entries more than specified length to trim.entries
- - entries to addtrimLen
- - length to trimtrimStrict
- - if false
then trims to few tens of entries more than specified length to trimorg.reactivestreams.Publisher<Void> addAll(StreamId id, Map<K,V> entries, int trimLen, boolean trimStrict)
trimLen
size.
If trimStrict
is false
then trims to few tens of entries more than specified length to trim.id
- - Stream IDentries
- - entries to addtrimLen
- - length to trimtrimStrict
- - if false
then trims to few tens of entries more than specified length to trimorg.reactivestreams.Publisher<Map<StreamId,Map<K,V>>> read(StreamId... ids)
ids
- - collection of Stream IDsorg.reactivestreams.Publisher<Map<StreamId,Map<K,V>>> read(int count, StreamId... ids)
count
- - stream data size limitids
- - collection of Stream IDsorg.reactivestreams.Publisher<Map<StreamId,Map<K,V>>> read(long timeout, TimeUnit unit, StreamId... ids)
timeout
interval.timeout
- - time interval to wait for stream data availabilityunit
- - time interval unitids
- - collection of Stream IDsorg.reactivestreams.Publisher<Map<StreamId,Map<K,V>>> read(int count, long timeout, TimeUnit unit, StreamId... ids)
timeout
interval.count
- - stream data size limittimeout
- - time interval to wait for stream data availabilityunit
- - time interval unitids
- - collection of Stream IDsorg.reactivestreams.Publisher<Map<String,Map<StreamId,Map<K,V>>>> read(StreamId id, String name2, StreamId id2)
id
- - id of this streamname2
- - name of second streamid2
- - id of second streamorg.reactivestreams.Publisher<Map<String,Map<StreamId,Map<K,V>>>> read(StreamId id, String name2, StreamId id2, String name3, StreamId id3)
id
- - id of this streamname2
- - name of second streamid2
- - id of second streamname3
- - name of third streamid3
- - id of third streamorg.reactivestreams.Publisher<Map<String,Map<StreamId,Map<K,V>>>> read(StreamId id, Map<String,StreamId> nameToId)
id
- - id of this streamnameToId
- - stream id mapped by nameorg.reactivestreams.Publisher<Map<String,Map<StreamId,Map<K,V>>>> read(int count, StreamId id, String name2, StreamId id2)
count
- - stream data size limitid
- - id of this streamname2
- - name of second streamid2
- - id of second streamorg.reactivestreams.Publisher<Map<String,Map<StreamId,Map<K,V>>>> read(int count, StreamId id, String name2, StreamId id2, String name3, StreamId id3)
count
- - stream data size limitid
- - id of this streamname2
- - name of second streamid2
- - id of second streamname3
- - name of third streamid3
- - id of third streamorg.reactivestreams.Publisher<Map<String,Map<StreamId,Map<K,V>>>> read(int count, StreamId id, Map<String,StreamId> nameToId)
count
- - stream data size limitid
- - id of this streamnameToId
- - stream id mapped by nameorg.reactivestreams.Publisher<Map<String,Map<StreamId,Map<K,V>>>> read(long timeout, TimeUnit unit, StreamId id, String name2, StreamId id2)
timeout
interval.timeout
- - time interval to wait for stream data availabilityunit
- - time interval unitid
- - id of this streamname2
- - name of second streamid2
- - id of second streamorg.reactivestreams.Publisher<Map<String,Map<StreamId,Map<K,V>>>> read(long timeout, TimeUnit unit, StreamId id, String name2, StreamId id2, String name3, StreamId id3)
timeout
interval.timeout
- - time interval to wait for stream data availabilityunit
- - time interval unitid
- - id of this streamname2
- - name of second streamid2
- - id of second streamname3
- - name of third streamid3
- - id of third streamorg.reactivestreams.Publisher<Map<String,Map<StreamId,Map<K,V>>>> read(long timeout, TimeUnit unit, StreamId id, Map<String,StreamId> nameToId)
timeout
interval.timeout
- - time interval to wait for stream data availabilityunit
- - time interval unitid
- - id of this streamnameToId
- - stream id mapped by nameorg.reactivestreams.Publisher<Map<String,Map<StreamId,Map<K,V>>>> read(int count, long timeout, TimeUnit unit, StreamId id, String name2, StreamId id2)
timeout
interval.count
- - stream data size limittimeout
- - time interval to wait for stream data availabilityunit
- - time interval unitid
- - id of this streamname2
- - name of second streamid2
- - id of second streamorg.reactivestreams.Publisher<Map<String,Map<StreamId,Map<K,V>>>> read(int count, long timeout, TimeUnit unit, StreamId id, String name2, StreamId id2, String name3, StreamId id3)
timeout
interval.count
- - stream data size limittimeout
- - time interval to wait for stream data availabilityunit
- - time interval unitid
- - id of this streamname2
- - name of second streamid2
- - id of second streamname3
- - name of third streamid3
- - id of third streamorg.reactivestreams.Publisher<Map<String,Map<StreamId,Map<K,V>>>> read(int count, long timeout, TimeUnit unit, StreamId id, Map<String,StreamId> nameToId)
timeout
interval.count
- - stream data size limittimeout
- - time interval to wait for stream data availabilityunit
- - time interval unitid
- - id of this streamnameToId
- - stream id mapped by nameorg.reactivestreams.Publisher<Map<StreamId,Map<K,V>>> range(StreamId startId, StreamId endId)
startId
- - start Stream IDendId
- - end Stream IDorg.reactivestreams.Publisher<Map<StreamId,Map<K,V>>> range(int count, StreamId startId, StreamId endId)
count
- - stream data size limitstartId
- - start Stream IDendId
- - end Stream IDorg.reactivestreams.Publisher<Map<StreamId,Map<K,V>>> rangeReversed(StreamId startId, StreamId endId)
startId
- - start Stream IDendId
- - end Stream IDorg.reactivestreams.Publisher<Map<StreamId,Map<K,V>>> rangeReversed(int count, StreamId startId, StreamId endId)
count
- - stream data size limitstartId
- - start Stream IDendId
- - end Stream IDCopyright © 2014–2018 The Redisson Project. All rights reserved.