K
- key typeV
- value typepublic interface RStreamRx<K,V> extends RExpirableRx
Requires Redis 5.0.0 and higher.
Modifier and Type | Method and Description |
---|---|
io.reactivex.Single<Long> |
ack(String groupName,
StreamMessageId... ids)
Marks pending messages by group name and stream
ids as correctly processed. |
io.reactivex.Single<StreamMessageId> |
add(K key,
V value)
Appends a new entry and returns generated Stream ID
|
io.reactivex.Single<StreamMessageId> |
add(K key,
V value,
int trimLen,
boolean trimStrict)
Appends a new entry and returns generated Stream ID.
|
io.reactivex.Completable |
add(StreamMessageId id,
K key,
V value)
Appends a new entry by specified Stream ID
|
io.reactivex.Completable |
add(StreamMessageId id,
K key,
V value,
int trimLen,
boolean trimStrict)
Appends a new entry by specified Stream ID.
|
io.reactivex.Single<StreamMessageId> |
addAll(Map<K,V> entries)
Appends new entries and returns generated Stream ID
|
io.reactivex.Single<StreamMessageId> |
addAll(Map<K,V> entries,
int trimLen,
boolean trimStrict)
Appends new entries and returns generated Stream ID.
|
io.reactivex.Completable |
addAll(StreamMessageId id,
Map<K,V> entries)
Appends new entries by specified Stream ID
|
io.reactivex.Completable |
addAll(StreamMessageId id,
Map<K,V> entries,
int trimLen,
boolean trimStrict)
Appends new entries by specified Stream ID.
|
io.reactivex.Single<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.
|
io.reactivex.Completable |
createGroup(String groupName)
Creates consumer group by name.
|
io.reactivex.Completable |
createGroup(String groupName,
StreamMessageId id)
Creates consumer group by name and stream id.
|
io.reactivex.Single<StreamInfo<K,V>> |
getInfo()
Returns information about this stream.
|
io.reactivex.Single<PendingResult> |
getPendingInfo(String groupName)
Returns common info about pending messages by group name.
|
io.reactivex.Single<List<StreamConsumer>> |
listConsumers(String groupName)
Returns list of objects with information about group customers for specified
groupName . |
io.reactivex.Single<List<StreamGroup>> |
listGroups()
Returns list of objects with information about groups belonging to this stream.
|
io.reactivex.Single<PendingResult> |
listPending(String groupName)
Deprecated.
|
io.reactivex.Single<List<PendingEntry>> |
listPending(String groupName,
StreamMessageId startId,
StreamMessageId endId,
int count)
Returns list of pending messages by group name.
|
io.reactivex.Single<List<PendingEntry>> |
listPending(String groupName,
String consumerName,
StreamMessageId startId,
StreamMessageId endId,
int count)
Returns list of pending messages by group name and consumer name.
|
io.reactivex.Single<Map<StreamMessageId,Map<K,V>>> |
pendingRange(String groupName,
StreamMessageId startId,
StreamMessageId endId,
int count)
Returns stream data of pending messages by group name.
|
io.reactivex.Single<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.
|
io.reactivex.Single<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).
|
io.reactivex.Single<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).
|
io.reactivex.Single<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).
|
io.reactivex.Single<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).
|
io.reactivex.Single<Map<StreamMessageId,Map<K,V>>> |
read(int count,
long timeout,
TimeUnit unit,
StreamMessageId... ids)
Read stream data by specified collection of Stream IDs.
|
io.reactivex.Single<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.
|
io.reactivex.Single<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.
|
io.reactivex.Single<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.
|
io.reactivex.Single<Map<StreamMessageId,Map<K,V>>> |
read(int count,
StreamMessageId... ids)
Read stream data by specified collection of Stream IDs.
|
io.reactivex.Single<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.
|
io.reactivex.Single<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.
|
io.reactivex.Single<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.
|
io.reactivex.Single<Map<StreamMessageId,Map<K,V>>> |
read(long timeout,
TimeUnit unit,
StreamMessageId... ids)
Read stream data by specified collection of Stream IDs.
|
io.reactivex.Single<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.
|
io.reactivex.Single<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.
|
io.reactivex.Single<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.
|
io.reactivex.Single<Map<StreamMessageId,Map<K,V>>> |
read(StreamMessageId... ids)
Read stream data by specified collection of Stream IDs.
|
io.reactivex.Single<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.
|
io.reactivex.Single<Map<String,Map<StreamMessageId,Map<K,V>>>> |
read(StreamMessageId id,
String name2,
StreamMessageId id2)
Read stream data by specified stream name including this stream.
|
io.reactivex.Single<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.
|
io.reactivex.Single<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. |
io.reactivex.Single<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. |
io.reactivex.Single<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. |
io.reactivex.Single<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. |
io.reactivex.Single<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. |
io.reactivex.Single<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. |
io.reactivex.Single<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. |
io.reactivex.Single<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. |
io.reactivex.Single<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. |
io.reactivex.Single<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. |
io.reactivex.Single<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. |
io.reactivex.Single<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. |
io.reactivex.Single<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. |
io.reactivex.Single<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. |
io.reactivex.Single<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. |
io.reactivex.Single<Long> |
remove(StreamMessageId... ids)
Removes messages by id.
|
io.reactivex.Single<Long> |
removeConsumer(String groupName,
String consumerName)
Removes consumer of the group by name.
|
io.reactivex.Completable |
removeGroup(String groupName)
Removes group by name.
|
io.reactivex.Single<Long> |
size()
Returns number of entries in stream
|
io.reactivex.Single<Long> |
trim(int size)
Trims stream to specified size
|
io.reactivex.Single<Long> |
trimNonStrict(int size)
Trims stream to few tens of entries more than specified length to trim.
|
io.reactivex.Completable |
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
io.reactivex.Completable createGroup(String groupName)
groupName
- - name of groupio.reactivex.Completable 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 idio.reactivex.Completable removeGroup(String groupName)
groupName
- - name of groupio.reactivex.Single<Long> removeConsumer(String groupName, String consumerName)
groupName
- - name of groupconsumerName
- - name of consumerio.reactivex.Completable updateGroupMessageId(String groupName, StreamMessageId id)
groupName
- - name of groupid
- - Stream Message IDio.reactivex.Single<Long> ack(String groupName, StreamMessageId... ids)
ids
as correctly processed.groupName
- - name of groupids
- - stream idsio.reactivex.Single<PendingResult> getPendingInfo(String groupName)
groupName
- - name of group@Deprecated io.reactivex.Single<PendingResult> listPending(String groupName)
io.reactivex.Single<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 messagesio.reactivex.Single<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 messagesio.reactivex.Single<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 idsio.reactivex.Single<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 IDsio.reactivex.Single<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
- - name of consumercount
- - stream data size limitids
- - collection of Stream IDsio.reactivex.Single<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
- - name of consumertimeout
- - time interval to wait for stream data availabilityunit
- - time interval unitids
- - collection of Stream IDsio.reactivex.Single<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
- - name of consumercount
- - stream data size limittimeout
- - time interval to wait for stream data availabilityunit
- - time interval unitids
- - collection of Stream IDsio.reactivex.Single<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 nameio.reactivex.Single<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 nameio.reactivex.Single<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 streamio.reactivex.Single<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 streamio.reactivex.Single<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 nameio.reactivex.Single<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 streamio.reactivex.Single<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 streamio.reactivex.Single<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 streamio.reactivex.Single<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 streamio.reactivex.Single<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 streamio.reactivex.Single<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 streamio.reactivex.Single<Long> size()
io.reactivex.Single<StreamMessageId> add(K key, V value)
key
- - key of entryvalue
- - value of entryio.reactivex.Completable add(StreamMessageId id, K key, V value)
id
- - Stream IDkey
- - key of entryvalue
- - value of entryio.reactivex.Single<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 trimio.reactivex.Completable 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 trimio.reactivex.Single<StreamMessageId> addAll(Map<K,V> entries)
entries
- - entries to addio.reactivex.Completable addAll(StreamMessageId id, Map<K,V> entries)
id
- - Stream IDentries
- - entries to addio.reactivex.Single<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 trimio.reactivex.Completable 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 trimio.reactivex.Single<Map<StreamMessageId,Map<K,V>>> read(StreamMessageId... ids)
ids
- - collection of Stream IDsio.reactivex.Single<Map<StreamMessageId,Map<K,V>>> read(int count, StreamMessageId... ids)
count
- - stream data size limitids
- - collection of Stream IDsio.reactivex.Single<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 IDsio.reactivex.Single<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 IDsio.reactivex.Single<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 streamio.reactivex.Single<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 streamio.reactivex.Single<Map<String,Map<StreamMessageId,Map<K,V>>>> read(StreamMessageId id, Map<String,StreamMessageId> nameToId)
id
- - id of this streamnameToId
- - stream id mapped by nameio.reactivex.Single<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 streamio.reactivex.Single<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 streamio.reactivex.Single<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 nameio.reactivex.Single<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 streamio.reactivex.Single<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 streamio.reactivex.Single<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 nameio.reactivex.Single<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 streamio.reactivex.Single<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 streamio.reactivex.Single<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 nameio.reactivex.Single<Map<StreamMessageId,Map<K,V>>> range(StreamMessageId startId, StreamMessageId endId)
startId
- - start Stream IDendId
- - end Stream IDio.reactivex.Single<Map<StreamMessageId,Map<K,V>>> range(int count, StreamMessageId startId, StreamMessageId endId)
count
- - stream data size limitstartId
- - start Stream IDendId
- - end Stream IDio.reactivex.Single<Map<StreamMessageId,Map<K,V>>> rangeReversed(StreamMessageId startId, StreamMessageId endId)
startId
- - start Stream IDendId
- - end Stream IDio.reactivex.Single<Map<StreamMessageId,Map<K,V>>> rangeReversed(int count, StreamMessageId startId, StreamMessageId endId)
count
- - stream data size limitstartId
- - start Stream IDendId
- - end Stream IDio.reactivex.Single<Long> remove(StreamMessageId... ids)
ids
- - id of messages to removeio.reactivex.Single<Long> trim(int size)
size
- - new size of streamio.reactivex.Single<Long> trimNonStrict(int size)
size
- - new size of streamio.reactivex.Single<StreamInfo<K,V>> getInfo()
io.reactivex.Single<List<StreamGroup>> listGroups()
io.reactivex.Single<List<StreamConsumer>> listConsumers(String groupName)
groupName
.groupName
- - name of groupio.reactivex.Single<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)
io.reactivex.Single<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–2020 Redisson. All rights reserved.