K
- key typeV
- value typepublic interface RStreamReactive<K,V> extends RExpirableReactive
Requires Redis 5.0.0 and higher.
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<Long> |
ack(String groupName,
StreamMessageId... ids)
Marks pending messages by group name and stream
ids as correctly processed. |
reactor.core.publisher.Mono<StreamMessageId> |
add(K key,
V value)
Appends a new entry and returns generated Stream ID
|
reactor.core.publisher.Mono<StreamMessageId> |
add(K key,
V value,
int trimLen,
boolean trimStrict)
Appends a new entry and returns generated Stream ID.
|
reactor.core.publisher.Mono<Void> |
add(StreamMessageId id,
K key,
V value)
Appends a new entry by specified Stream ID
|
reactor.core.publisher.Mono<Void> |
add(StreamMessageId id,
K key,
V value,
int trimLen,
boolean trimStrict)
Appends a new entry by specified Stream ID.
|
reactor.core.publisher.Mono<StreamMessageId> |
addAll(Map<K,V> entries)
Appends new entries and returns generated Stream ID
|
reactor.core.publisher.Mono<StreamMessageId> |
addAll(Map<K,V> entries,
int trimLen,
boolean trimStrict)
Appends new entries and returns generated Stream ID.
|
reactor.core.publisher.Mono<Void> |
addAll(StreamMessageId id,
Map<K,V> entries)
Appends new entries by specified Stream ID
|
reactor.core.publisher.Mono<Void> |
addAll(StreamMessageId id,
Map<K,V> entries,
int trimLen,
boolean trimStrict)
Appends new entries by specified Stream ID.
|
reactor.core.publisher.Mono<AutoClaimResult<K,V>> |
autoClaim(String groupName,
String consumerName,
long idleTime,
TimeUnit idleTimeUnit,
StreamMessageId startId,
int count)
Transfers ownership of pending messages by id to a new consumer
by name if idle time of messages and startId are greater than defined value.
|
reactor.core.publisher.Mono<Map<StreamMessageId,Map<K,V>>> |
claim(String groupName,
String consumerName,
long idleTime,
TimeUnit idleTimeUnit,
StreamMessageId... ids)
Transfers ownership of pending messages by id to a new consumer
by name if idle time of messages is greater than defined value.
|
reactor.core.publisher.Mono<Void> |
createConsumer(String groupName,
String consumerName)
Creates consumer of the group by name.
|
reactor.core.publisher.Mono<Void> |
createGroup(String groupName)
Creates consumer group by name.
|
reactor.core.publisher.Mono<Void> |
createGroup(String groupName,
StreamMessageId id)
Creates consumer group by name and stream id.
|
reactor.core.publisher.Mono<FastAutoClaimResult> |
fastAutoClaim(String groupName,
String consumerName,
long idleTime,
TimeUnit idleTimeUnit,
StreamMessageId startId,
int count)
Transfers ownership of pending messages by id to a new consumer
by name if idle time of messages and startId are greater than defined value.
|
reactor.core.publisher.Mono<StreamInfo<K,V>> |
getInfo()
Returns information about this stream.
|
reactor.core.publisher.Mono<PendingResult> |
getPendingInfo(String groupName)
Returns common info about pending messages by group name.
|
reactor.core.publisher.Mono<List<StreamConsumer>> |
listConsumers(String groupName)
Returns list of objects with information about group customers for specified
groupName . |
reactor.core.publisher.Mono<List<StreamGroup>> |
listGroups()
Returns list of objects with information about groups belonging to this stream.
|
reactor.core.publisher.Mono<PendingResult> |
listPending(String groupName)
Deprecated.
|
reactor.core.publisher.Mono<List<PendingEntry>> |
listPending(String groupName,
StreamMessageId startId,
StreamMessageId endId,
int count)
Returns list of pending messages by group name.
|
reactor.core.publisher.Mono<List<PendingEntry>> |
listPending(String groupName,
StreamMessageId startId,
StreamMessageId endId,
long idleTime,
TimeUnit idleTimeUnit,
int count)
Returns list of common info about pending messages by group name.
|
reactor.core.publisher.Mono<List<PendingEntry>> |
listPending(String groupName,
String consumerName,
StreamMessageId startId,
StreamMessageId endId,
int count)
Returns list of pending messages by group name and consumer name.
|
reactor.core.publisher.Mono<List<PendingEntry>> |
listPending(String groupName,
String consumerName,
StreamMessageId startId,
StreamMessageId endId,
long idleTime,
TimeUnit idleTimeUnit,
int count)
Returns list of common info about pending messages by group and consumer name.
|
reactor.core.publisher.Mono<Map<StreamMessageId,Map<K,V>>> |
pendingRange(String groupName,
StreamMessageId startId,
StreamMessageId endId,
int count)
Returns stream data of pending messages by group name.
|
reactor.core.publisher.Mono<Map<StreamMessageId,Map<K,V>>> |
pendingRange(String groupName,
StreamMessageId startId,
StreamMessageId endId,
long idleTime,
TimeUnit idleTimeUnit,
int count)
Returns stream data of pending messages by group name.
|
reactor.core.publisher.Mono<Map<StreamMessageId,Map<K,V>>> |
pendingRange(String groupName,
String consumerName,
StreamMessageId startId,
StreamMessageId endId,
int count)
Returns stream data of pending messages by group and customer name.
|
reactor.core.publisher.Mono<Map<StreamMessageId,Map<K,V>>> |
pendingRange(String groupName,
String consumerName,
StreamMessageId startId,
StreamMessageId endId,
long idleTime,
TimeUnit idleTimeUnit,
int count)
Returns stream data of pending messages by group and customer name.
|
reactor.core.publisher.Mono<Map<StreamMessageId,Map<K,V>>> |
range(int count,
StreamMessageId startId,
StreamMessageId endId)
Returns stream data in range by specified start Stream ID (included) and end Stream ID (included).
|
reactor.core.publisher.Mono<Map<StreamMessageId,Map<K,V>>> |
range(StreamMessageId startId,
StreamMessageId endId)
Returns stream data in range by specified start Stream ID (included) and end Stream ID (included).
|
reactor.core.publisher.Mono<Map<StreamMessageId,Map<K,V>>> |
rangeReversed(int count,
StreamMessageId startId,
StreamMessageId endId)
Returns stream data in reverse order in range by specified start Stream ID (included) and end Stream ID (included).
|
reactor.core.publisher.Mono<Map<StreamMessageId,Map<K,V>>> |
rangeReversed(StreamMessageId startId,
StreamMessageId endId)
Returns stream data in reverse order in range by specified start Stream ID (included) and end Stream ID (included).
|
reactor.core.publisher.Mono<Map<StreamMessageId,Map<K,V>>> |
read(int count,
long timeout,
TimeUnit unit,
StreamMessageId... ids)
Read stream data by specified collection of Stream IDs.
|
reactor.core.publisher.Mono<Map<String,Map<StreamMessageId,Map<K,V>>>> |
read(int count,
long timeout,
TimeUnit unit,
StreamMessageId id,
Map<String,StreamMessageId> nameToId)
Read stream data by specified stream id mapped by name including this stream.
|
reactor.core.publisher.Mono<Map<String,Map<StreamMessageId,Map<K,V>>>> |
read(int count,
long timeout,
TimeUnit unit,
StreamMessageId id,
String name2,
StreamMessageId id2)
Read stream data by specified stream name including this stream.
|
reactor.core.publisher.Mono<Map<String,Map<StreamMessageId,Map<K,V>>>> |
read(int count,
long timeout,
TimeUnit unit,
StreamMessageId id,
String name2,
StreamMessageId id2,
String name3,
StreamMessageId id3)
Read stream data by specified stream names including this stream.
|
reactor.core.publisher.Mono<Map<StreamMessageId,Map<K,V>>> |
read(int count,
StreamMessageId... ids)
Read stream data by specified collection of Stream IDs.
|
reactor.core.publisher.Mono<Map<String,Map<StreamMessageId,Map<K,V>>>> |
read(int count,
StreamMessageId id,
Map<String,StreamMessageId> nameToId)
Read stream data by specified stream id mapped by name including this stream.
|
reactor.core.publisher.Mono<Map<String,Map<StreamMessageId,Map<K,V>>>> |
read(int count,
StreamMessageId id,
String name2,
StreamMessageId id2)
Read stream data by specified stream name including this stream.
|
reactor.core.publisher.Mono<Map<String,Map<StreamMessageId,Map<K,V>>>> |
read(int count,
StreamMessageId id,
String name2,
StreamMessageId id2,
String name3,
StreamMessageId id3)
Read stream data by specified stream names including this stream.
|
reactor.core.publisher.Mono<Map<StreamMessageId,Map<K,V>>> |
read(long timeout,
TimeUnit unit,
StreamMessageId... ids)
Read stream data by specified collection of Stream IDs.
|
reactor.core.publisher.Mono<Map<String,Map<StreamMessageId,Map<K,V>>>> |
read(long timeout,
TimeUnit unit,
StreamMessageId id,
Map<String,StreamMessageId> nameToId)
Read stream data by specified stream id mapped by name including this stream.
|
reactor.core.publisher.Mono<Map<String,Map<StreamMessageId,Map<K,V>>>> |
read(long timeout,
TimeUnit unit,
StreamMessageId id,
String name2,
StreamMessageId id2)
Read stream data by specified stream name including this stream.
|
reactor.core.publisher.Mono<Map<String,Map<StreamMessageId,Map<K,V>>>> |
read(long timeout,
TimeUnit unit,
StreamMessageId id,
String name2,
StreamMessageId id2,
String name3,
StreamMessageId id3)
Read stream data by specified stream names including this stream.
|
reactor.core.publisher.Mono<Map<StreamMessageId,Map<K,V>>> |
read(StreamMessageId... ids)
Read stream data by specified collection of Stream IDs.
|
reactor.core.publisher.Mono<Map<String,Map<StreamMessageId,Map<K,V>>>> |
read(StreamMessageId id,
Map<String,StreamMessageId> nameToId)
Read stream data by specified stream id mapped by name including this stream.
|
reactor.core.publisher.Mono<Map<String,Map<StreamMessageId,Map<K,V>>>> |
read(StreamMessageId id,
String name2,
StreamMessageId id2)
Read stream data by specified stream name including this stream.
|
reactor.core.publisher.Mono<Map<String,Map<StreamMessageId,Map<K,V>>>> |
read(StreamMessageId id,
String name2,
StreamMessageId id2,
String name3,
StreamMessageId id3)
Read stream data by specified stream names including this stream.
|
reactor.core.publisher.Mono<Map<StreamMessageId,Map<K,V>>> |
readGroup(String groupName,
String consumerName,
int count,
long timeout,
TimeUnit unit,
StreamMessageId... ids)
Read stream data from
groupName by consumerName and specified collection of Stream IDs. |
reactor.core.publisher.Mono<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readGroup(String groupName,
String consumerName,
int count,
long timeout,
TimeUnit unit,
StreamMessageId id,
String key2,
StreamMessageId id2)
Read stream data from
groupName by consumerName , starting by specified message ids for this and other streams. |
reactor.core.publisher.Mono<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readGroup(String groupName,
String consumerName,
int count,
long timeout,
TimeUnit unit,
StreamMessageId id,
String key2,
StreamMessageId id2,
String key3,
StreamMessageId id3)
Read stream data from
groupName by consumerName , starting by specified message ids for this and other streams. |
reactor.core.publisher.Mono<Map<StreamMessageId,Map<K,V>>> |
readGroup(String groupName,
String consumerName,
int count,
StreamMessageId... ids)
Read stream data from
groupName by consumerName and specified collection of Stream IDs. |
reactor.core.publisher.Mono<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readGroup(String groupName,
String consumerName,
int count,
StreamMessageId id,
Map<String,StreamMessageId> nameToId)
Read stream data from
groupName by consumerName , starting by specified message ids for this and other streams. |
reactor.core.publisher.Mono<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readGroup(String groupName,
String consumerName,
int count,
StreamMessageId id,
String key2,
StreamMessageId id2)
Read stream data from
groupName by consumerName , starting by specified message ids for this and other streams. |
reactor.core.publisher.Mono<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readGroup(String groupName,
String consumerName,
int count,
StreamMessageId id,
String key2,
StreamMessageId id2,
String key3,
StreamMessageId id3)
Read stream data from
groupName by consumerName , starting by specified message ids for this and other streams. |
reactor.core.publisher.Mono<Map<StreamMessageId,Map<K,V>>> |
readGroup(String groupName,
String consumerName,
long timeout,
TimeUnit unit,
StreamMessageId... ids)
Read stream data from
groupName by consumerName and specified collection of Stream IDs. |
reactor.core.publisher.Mono<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readGroup(String groupName,
String consumerName,
long timeout,
TimeUnit unit,
StreamMessageId id,
Map<String,StreamMessageId> nameToId)
Read stream data from
groupName by consumerName , starting by specified message ids for this and other streams. |
reactor.core.publisher.Mono<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readGroup(String groupName,
String consumerName,
long timeout,
TimeUnit unit,
StreamMessageId id,
String key2,
StreamMessageId id2)
Read stream data from
groupName by consumerName , starting by specified message ids for this and other streams. |
reactor.core.publisher.Mono<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readGroup(String groupName,
String consumerName,
long timeout,
TimeUnit unit,
StreamMessageId id,
String key2,
StreamMessageId id2,
String key3,
StreamMessageId id3)
Read stream data from
groupName by consumerName , starting by specified message ids for this and other streams. |
reactor.core.publisher.Mono<Map<StreamMessageId,Map<K,V>>> |
readGroup(String groupName,
String consumerName,
StreamMessageId... ids)
Read stream data from
groupName by consumerName and specified collection of Stream IDs. |
reactor.core.publisher.Mono<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readGroup(String groupName,
String consumerName,
StreamMessageId id,
Map<String,StreamMessageId> nameToId)
Read stream data from
groupName by consumerName , starting by specified message ids for this and other streams. |
reactor.core.publisher.Mono<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readGroup(String groupName,
String consumerName,
StreamMessageId id,
String key2,
StreamMessageId id2)
Read stream data from
groupName by consumerName , starting by specified message ids for this and other streams. |
reactor.core.publisher.Mono<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readGroup(String groupName,
String consumerName,
StreamMessageId id,
String key2,
StreamMessageId id2,
String key3,
StreamMessageId id3)
Read stream data from
groupName by consumerName , starting by specified message ids for this and other streams. |
reactor.core.publisher.Mono<Long> |
remove(StreamMessageId... ids)
Removes messages by id.
|
reactor.core.publisher.Mono<Long> |
removeConsumer(String groupName,
String consumerName)
Removes consumer of the group by name.
|
reactor.core.publisher.Mono<Void> |
removeGroup(String groupName)
Removes group by name.
|
reactor.core.publisher.Mono<Long> |
size()
Returns number of entries in stream
|
reactor.core.publisher.Mono<Long> |
trim(int size)
Trims stream to specified size
|
reactor.core.publisher.Mono<Long> |
trimNonStrict(int size)
Trims stream to few tens of entries more than specified length to trim.
|
reactor.core.publisher.Mono<Void> |
updateGroupMessageId(String groupName,
StreamMessageId id)
Updates next message id delivered to consumers.
|
clearExpire, expire, expireAt, expireAt, remainTimeToLive
addListener, copy, delete, dump, getCodec, getIdleTime, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlink
reactor.core.publisher.Mono<Void> createGroup(String groupName)
groupName
- - name of groupreactor.core.publisher.Mono<Void> createGroup(String groupName, StreamMessageId id)
id
will be available for consumers of this group.
StreamMessageId.NEWEST
is used for messages arrived since the moment of group creating
groupName
- - name of groupid
- - stream idreactor.core.publisher.Mono<Void> removeGroup(String groupName)
groupName
- - name of groupreactor.core.publisher.Mono<Void> createConsumer(String groupName, String consumerName)
Requires Redis 6.2.0 and higher.
groupName
- - name of groupconsumerName
- - name of consumerreactor.core.publisher.Mono<Long> removeConsumer(String groupName, String consumerName)
groupName
- - name of groupconsumerName
- - name of consumerreactor.core.publisher.Mono<Void> updateGroupMessageId(String groupName, StreamMessageId id)
groupName
- - name of groupid
- - Stream Message IDreactor.core.publisher.Mono<Long> ack(String groupName, StreamMessageId... ids)
ids
as correctly processed.groupName
- - name of groupids
- - stream idsreactor.core.publisher.Mono<PendingResult> getPendingInfo(String groupName)
groupName
- - name of group@Deprecated reactor.core.publisher.Mono<PendingResult> listPending(String groupName)
reactor.core.publisher.Mono<List<PendingEntry>> listPending(String groupName, StreamMessageId startId, StreamMessageId endId, int count)
StreamMessageId.MAX
is used as max stream id
StreamMessageId.MIN
is used as min stream id
groupName
- - name of groupstartId
- - start stream idendId
- - end stream idcount
- - amount of messagesreactor.core.publisher.Mono<List<PendingEntry>> listPending(String groupName, String consumerName, StreamMessageId startId, StreamMessageId endId, int count)
StreamMessageId.MAX
is used as max stream id
StreamMessageId.MIN
is used as min stream id
consumerName
- - name of consumergroupName
- - name of groupstartId
- - start stream idendId
- - end stream idcount
- - amount of messagesreactor.core.publisher.Mono<List<PendingEntry>> listPending(String groupName, StreamMessageId startId, StreamMessageId endId, long idleTime, TimeUnit idleTimeUnit, int count)
StreamMessageId.MAX
is used as max Stream Message ID
StreamMessageId.MIN
is used as min Stream Message ID
Requires Redis 6.2.0 and higher.
groupName
- - name of groupstartId
- - start Stream Message IDidleTime
- - minimum idle time of messagesidleTimeUnit
- - idle time unitendId
- - end Stream Message IDcount
- - amount of messagespendingRange(java.lang.String, org.redisson.api.StreamMessageId, org.redisson.api.StreamMessageId, long, java.util.concurrent.TimeUnit, int)
reactor.core.publisher.Mono<List<PendingEntry>> listPending(String groupName, String consumerName, StreamMessageId startId, StreamMessageId endId, long idleTime, TimeUnit idleTimeUnit, int count)
StreamMessageId.MAX
is used as max Stream Message ID
StreamMessageId.MIN
is used as min Stream Message ID
Requires Redis 6.2.0 and higher.
consumerName
- - name of consumergroupName
- - name of groupstartId
- - start Stream Message IDendId
- - end Stream Message IDidleTime
- - minimum idle time of messagesidleTimeUnit
- - idle time unitcount
- - amount of messagespendingRange(java.lang.String, org.redisson.api.StreamMessageId, org.redisson.api.StreamMessageId, long, java.util.concurrent.TimeUnit, int)
reactor.core.publisher.Mono<Map<StreamMessageId,Map<K,V>>> pendingRange(String groupName, StreamMessageId startId, StreamMessageId endId, long idleTime, TimeUnit idleTimeUnit, int count)
StreamMessageId.MAX
is used as max Stream Message ID
StreamMessageId.MIN
is used as min Stream Message ID
Requires Redis 6.2.0 and higher.
groupName
- - name of groupstartId
- - start Stream Message IDendId
- - end Stream Message IDidleTime
- - minimum idle time of messagesidleTimeUnit
- - idle time unitcount
- - amount of messageslistPending(java.lang.String)
reactor.core.publisher.Mono<Map<StreamMessageId,Map<K,V>>> pendingRange(String groupName, String consumerName, StreamMessageId startId, StreamMessageId endId, long idleTime, TimeUnit idleTimeUnit, int count)
StreamMessageId.MAX
is used as max Stream Message ID
StreamMessageId.MIN
is used as min Stream Message ID
Requires Redis 6.2.0 and higher.
consumerName
- - name of consumergroupName
- - name of groupstartId
- - start Stream Message IDendId
- - end Stream Message IDidleTime
- - minimum idle time of messagesidleTimeUnit
- - idle time unitcount
- - amount of messageslistPending(java.lang.String)
reactor.core.publisher.Mono<Map<StreamMessageId,Map<K,V>>> claim(String groupName, String consumerName, long idleTime, TimeUnit idleTimeUnit, StreamMessageId... ids)
groupName
- - name of groupconsumerName
- - name of consumeridleTime
- - minimum idle time of messagesidleTimeUnit
- - idle time unitids
- - stream idsreactor.core.publisher.Mono<AutoClaimResult<K,V>> autoClaim(String groupName, String consumerName, long idleTime, TimeUnit idleTimeUnit, StreamMessageId startId, int count)
groupName
- - name of groupconsumerName
- - name of consumeridleTime
- - minimum idle time of messagesidleTimeUnit
- - idle time unitstartId
- - start Stream Message IDreactor.core.publisher.Mono<FastAutoClaimResult> fastAutoClaim(String groupName, String consumerName, long idleTime, TimeUnit idleTimeUnit, StreamMessageId startId, int count)
groupName
- - name of groupconsumerName
- - name of consumeridleTime
- - minimum idle time of messagesidleTimeUnit
- - idle time unitstartId
- - start Stream Message IDreactor.core.publisher.Mono<Map<StreamMessageId,Map<K,V>>> readGroup(String groupName, String consumerName, StreamMessageId... ids)
groupName
by consumerName
and specified collection of Stream IDs.groupName
- - name of groupconsumerName
- - name of consumerids
- - collection of Stream IDsreactor.core.publisher.Mono<Map<StreamMessageId,Map<K,V>>> readGroup(String groupName, String consumerName, int count, StreamMessageId... ids)
groupName
by consumerName
and specified collection of Stream IDs.groupName
- - name of groupconsumerName
- - consumer namecount
- - stream data size limitids
- - collection of Stream IDsreactor.core.publisher.Mono<Map<StreamMessageId,Map<K,V>>> readGroup(String groupName, String consumerName, long timeout, TimeUnit unit, StreamMessageId... ids)
groupName
by consumerName
and specified collection of Stream IDs.
Wait for stream data availability for specified timeout
interval.groupName
- - name of groupconsumerName
- - consumer nametimeout
- - time interval to wait for stream data availabilityunit
- - time interval unitids
- - collection of Stream IDsreactor.core.publisher.Mono<Map<StreamMessageId,Map<K,V>>> readGroup(String groupName, String consumerName, int count, long timeout, TimeUnit unit, StreamMessageId... ids)
groupName
by consumerName
and specified collection of Stream IDs.
Wait for stream data availability for specified timeout
interval.groupName
- - name of groupconsumerName
- - consumer namecount
- - stream data size limittimeout
- - time interval to wait for stream data availabilityunit
- - time interval unitids
- - collection of Stream IDsreactor.core.publisher.Mono<Map<String,Map<StreamMessageId,Map<K,V>>>> readGroup(String groupName, String consumerName, StreamMessageId id, Map<String,StreamMessageId> nameToId)
groupName
by consumerName
, starting by specified message ids for this and other streams.groupName
- - name of groupconsumerName
- - name of consumerid
- - starting message id for this streamnameToId
- - Stream Message ID mapped by stream namereactor.core.publisher.Mono<Map<String,Map<StreamMessageId,Map<K,V>>>> readGroup(String groupName, String consumerName, int count, StreamMessageId id, Map<String,StreamMessageId> nameToId)
groupName
by consumerName
, starting by specified message ids for this and other streams.groupName
- - name of groupconsumerName
- - name of consumercount
- - stream data size limitid
- - starting message id for this streamnameToId
- - Stream Message ID mapped by stream namereactor.core.publisher.Mono<Map<String,Map<StreamMessageId,Map<K,V>>>> readGroup(String groupName, String consumerName, int count, long timeout, TimeUnit unit, StreamMessageId id, String key2, StreamMessageId id2)
groupName
by consumerName
, starting by specified message ids for this and other streams.
Waits for the first stream data availability for specified timeout
interval.groupName
- - name of groupconsumerName
- - name of consumercount
- - stream data size limittimeout
- - time interval to wait for stream data availabilityunit
- - time interval unitid
- - starting message id for this streamkey2
- - name of second streamid2
- - starting message id for second streamreactor.core.publisher.Mono<Map<String,Map<StreamMessageId,Map<K,V>>>> readGroup(String groupName, String consumerName, int count, long timeout, TimeUnit unit, StreamMessageId id, String key2, StreamMessageId id2, String key3, StreamMessageId id3)
groupName
by consumerName
, starting by specified message ids for this and other streams.
Waits for the first stream data availability for specified timeout
interval.groupName
- - name of groupconsumerName
- - name of consumercount
- - stream data size limittimeout
- - time interval to wait for stream data availabilityunit
- - time interval unitid
- - starting message id for this streamkey2
- - name of second streamid2
- - starting message id for second streamkey3
- - name of third streamid3
- - starting message id for third streamreactor.core.publisher.Mono<Map<String,Map<StreamMessageId,Map<K,V>>>> readGroup(String groupName, String consumerName, long timeout, TimeUnit unit, StreamMessageId id, Map<String,StreamMessageId> nameToId)
groupName
by consumerName
, starting by specified message ids for this and other streams.
Waits for the first stream data availability for specified timeout
interval.groupName
- - name of groupconsumerName
- - name of consumertimeout
- - time interval to wait for stream data availabilityunit
- - time interval unitid
- - starting message id for this streamnameToId
- - Stream Message ID mapped by stream namereactor.core.publisher.Mono<Map<String,Map<StreamMessageId,Map<K,V>>>> readGroup(String groupName, String consumerName, StreamMessageId id, String key2, StreamMessageId id2)
groupName
by consumerName
, starting by specified message ids for this and other streams.groupName
- - name of groupconsumerName
- - name of consumerid
- - starting message id for this streamkey2
- - name of second streamid2
- - starting message id for second streamreactor.core.publisher.Mono<Map<String,Map<StreamMessageId,Map<K,V>>>> readGroup(String groupName, String consumerName, StreamMessageId id, String key2, StreamMessageId id2, String key3, StreamMessageId id3)
groupName
by consumerName
, starting by specified message ids for this and other streams.groupName
- - name of groupconsumerName
- - name of consumerid
- - starting message id for this streamkey2
- - name of second streamid2
- - starting message id for second streamkey3
- - name of third streamid3
- - starting message id for third streamreactor.core.publisher.Mono<Map<String,Map<StreamMessageId,Map<K,V>>>> readGroup(String groupName, String consumerName, int count, StreamMessageId id, String key2, StreamMessageId id2)
groupName
by consumerName
, starting by specified message ids for this and other streams.groupName
- - name of groupconsumerName
- - name of consumercount
- - stream data size limitid
- - starting message id for this streamkey2
- - name of second streamid2
- - starting message id for second streamreactor.core.publisher.Mono<Map<String,Map<StreamMessageId,Map<K,V>>>> readGroup(String groupName, String consumerName, int count, StreamMessageId id, String key2, StreamMessageId id2, String key3, StreamMessageId id3)
groupName
by consumerName
, starting by specified message ids for this and other streams.groupName
- - name of groupconsumerName
- - name of consumercount
- - stream data size limitid
- - starting message id for this streamkey2
- - name of second streamid2
- - starting message id for second streamkey3
- - name of third streamid3
- - starting message id for third streamreactor.core.publisher.Mono<Map<String,Map<StreamMessageId,Map<K,V>>>> readGroup(String groupName, String consumerName, long timeout, TimeUnit unit, StreamMessageId id, String key2, StreamMessageId id2)
groupName
by consumerName
, starting by specified message ids for this and other streams.
Waits for the first stream data availability for specified timeout
interval.groupName
- - name of groupconsumerName
- - name of consumertimeout
- - time interval to wait for stream data availabilityunit
- - time interval unitid
- - starting message id for this streamkey2
- - name of second streamid2
- - starting message id for second streamreactor.core.publisher.Mono<Map<String,Map<StreamMessageId,Map<K,V>>>> readGroup(String groupName, String consumerName, long timeout, TimeUnit unit, StreamMessageId id, String key2, StreamMessageId id2, String key3, StreamMessageId id3)
groupName
by consumerName
, starting by specified message ids for this and other streams.
Waits for the first stream data availability for specified timeout
interval.groupName
- - name of groupconsumerName
- - name of consumertimeout
- - time interval to wait for stream data availabilityunit
- - time interval unitid
- - starting message id for this streamkey2
- - name of second streamid2
- - starting message id for second streamkey3
- - name of third streamid3
- - starting message id for third streamreactor.core.publisher.Mono<Long> size()
reactor.core.publisher.Mono<StreamMessageId> add(K key, V value)
key
- - key of entryvalue
- - value of entryreactor.core.publisher.Mono<Void> add(StreamMessageId id, K key, V value)
id
- - Stream IDkey
- - key of entryvalue
- - value of entryreactor.core.publisher.Mono<StreamMessageId> 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 trimreactor.core.publisher.Mono<Void> add(StreamMessageId 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 trimreactor.core.publisher.Mono<StreamMessageId> addAll(Map<K,V> entries)
entries
- - entries to addreactor.core.publisher.Mono<Void> addAll(StreamMessageId id, Map<K,V> entries)
id
- - Stream IDentries
- - entries to addreactor.core.publisher.Mono<StreamMessageId> 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 trimreactor.core.publisher.Mono<Void> addAll(StreamMessageId 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 trimreactor.core.publisher.Mono<Map<StreamMessageId,Map<K,V>>> read(StreamMessageId... ids)
ids
- - collection of Stream IDsreactor.core.publisher.Mono<Map<StreamMessageId,Map<K,V>>> read(int count, StreamMessageId... ids)
count
- - stream data size limitids
- - collection of Stream IDsreactor.core.publisher.Mono<Map<StreamMessageId,Map<K,V>>> read(long timeout, TimeUnit unit, StreamMessageId... ids)
timeout
interval.timeout
- - time interval to wait for stream data availabilityunit
- - time interval unitids
- - collection of Stream IDsreactor.core.publisher.Mono<Map<StreamMessageId,Map<K,V>>> read(int count, long timeout, TimeUnit unit, StreamMessageId... ids)
timeout
interval.count
- - stream data size limittimeout
- - time interval to wait for stream data availabilityunit
- - time interval unitids
- - collection of Stream IDsreactor.core.publisher.Mono<Map<String,Map<StreamMessageId,Map<K,V>>>> read(StreamMessageId id, String name2, StreamMessageId id2)
id
- - id of this streamname2
- - name of second streamid2
- - id of second streamreactor.core.publisher.Mono<Map<String,Map<StreamMessageId,Map<K,V>>>> read(StreamMessageId id, String name2, StreamMessageId id2, String name3, StreamMessageId id3)
id
- - id of this streamname2
- - name of second streamid2
- - id of second streamname3
- - name of third streamid3
- - id of third streamreactor.core.publisher.Mono<Map<String,Map<StreamMessageId,Map<K,V>>>> read(StreamMessageId id, Map<String,StreamMessageId> nameToId)
id
- - id of this streamnameToId
- - stream id mapped by namereactor.core.publisher.Mono<Map<String,Map<StreamMessageId,Map<K,V>>>> read(int count, StreamMessageId id, String name2, StreamMessageId id2)
count
- - stream data size limitid
- - id of this streamname2
- - name of second streamid2
- - id of second streamreactor.core.publisher.Mono<Map<String,Map<StreamMessageId,Map<K,V>>>> read(int count, StreamMessageId id, String name2, StreamMessageId id2, String name3, StreamMessageId 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 streamreactor.core.publisher.Mono<Map<String,Map<StreamMessageId,Map<K,V>>>> read(int count, StreamMessageId id, Map<String,StreamMessageId> nameToId)
count
- - stream data size limitid
- - id of this streamnameToId
- - stream id mapped by namereactor.core.publisher.Mono<Map<String,Map<StreamMessageId,Map<K,V>>>> read(long timeout, TimeUnit unit, StreamMessageId id, String name2, StreamMessageId 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 streamreactor.core.publisher.Mono<Map<String,Map<StreamMessageId,Map<K,V>>>> read(long timeout, TimeUnit unit, StreamMessageId id, String name2, StreamMessageId id2, String name3, StreamMessageId 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 streamreactor.core.publisher.Mono<Map<String,Map<StreamMessageId,Map<K,V>>>> read(long timeout, TimeUnit unit, StreamMessageId id, Map<String,StreamMessageId> nameToId)
timeout
interval.timeout
- - time interval to wait for stream data availabilityunit
- - time interval unitid
- - id of this streamnameToId
- - stream id mapped by namereactor.core.publisher.Mono<Map<String,Map<StreamMessageId,Map<K,V>>>> read(int count, long timeout, TimeUnit unit, StreamMessageId id, String name2, StreamMessageId 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 streamreactor.core.publisher.Mono<Map<String,Map<StreamMessageId,Map<K,V>>>> read(int count, long timeout, TimeUnit unit, StreamMessageId id, String name2, StreamMessageId id2, String name3, StreamMessageId 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 streamreactor.core.publisher.Mono<Map<String,Map<StreamMessageId,Map<K,V>>>> read(int count, long timeout, TimeUnit unit, StreamMessageId id, Map<String,StreamMessageId> 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 namereactor.core.publisher.Mono<Map<StreamMessageId,Map<K,V>>> range(StreamMessageId startId, StreamMessageId endId)
startId
- - start Stream IDendId
- - end Stream IDreactor.core.publisher.Mono<Map<StreamMessageId,Map<K,V>>> range(int count, StreamMessageId startId, StreamMessageId endId)
count
- - stream data size limitstartId
- - start Stream IDendId
- - end Stream IDreactor.core.publisher.Mono<Map<StreamMessageId,Map<K,V>>> rangeReversed(StreamMessageId startId, StreamMessageId endId)
startId
- - start Stream IDendId
- - end Stream IDreactor.core.publisher.Mono<Map<StreamMessageId,Map<K,V>>> rangeReversed(int count, StreamMessageId startId, StreamMessageId endId)
count
- - stream data size limitstartId
- - start Stream IDendId
- - end Stream IDreactor.core.publisher.Mono<Long> remove(StreamMessageId... ids)
ids
- - id of messages to removereactor.core.publisher.Mono<Long> trim(int size)
size
- - new size of streamreactor.core.publisher.Mono<Long> trimNonStrict(int size)
size
- - new size of streamreactor.core.publisher.Mono<StreamInfo<K,V>> getInfo()
reactor.core.publisher.Mono<List<StreamGroup>> listGroups()
reactor.core.publisher.Mono<List<StreamConsumer>> listConsumers(String groupName)
groupName
.groupName
- - name of groupreactor.core.publisher.Mono<Map<StreamMessageId,Map<K,V>>> pendingRange(String groupName, StreamMessageId startId, StreamMessageId endId, int count)
StreamMessageId.MAX
is used as max Stream Message ID
StreamMessageId.MIN
is used as min Stream Message ID
groupName
- - name of groupstartId
- - start Stream Message IDendId
- - end Stream Message IDcount
- - amount of messageslistPending(java.lang.String)
reactor.core.publisher.Mono<Map<StreamMessageId,Map<K,V>>> pendingRange(String groupName, String consumerName, StreamMessageId startId, StreamMessageId endId, int count)
StreamMessageId.MAX
is used as max Stream Message ID
StreamMessageId.MIN
is used as min Stream Message ID
consumerName
- - name of consumergroupName
- - name of groupstartId
- - start Stream Message IDendId
- - end Stream Message IDcount
- - amount of messageslistPending(java.lang.String)
Copyright © 2014–2021 Redisson. All rights reserved.