K
- key typeV
- value typepublic interface RStreamAsync<K,V> extends RExpirableAsync
Requires Redis 5.0.0 and higher.
Modifier and Type | Method and Description |
---|---|
RFuture<Long> |
ackAsync(String groupName,
StreamMessageId... ids)
Marks pending messages by group name and stream
ids as correctly processed. |
RFuture<StreamMessageId> |
addAllAsync(Map<K,V> entries)
Appends new entries and returns generated Stream ID
|
RFuture<StreamMessageId> |
addAllAsync(Map<K,V> entries,
int trimLen,
boolean trimStrict)
Appends new entries and returns generated Stream ID.
|
RFuture<Void> |
addAllAsync(StreamMessageId id,
Map<K,V> entries)
Appends new entries by specified Stream ID
|
RFuture<Void> |
addAllAsync(StreamMessageId id,
Map<K,V> entries,
int trimLen,
boolean trimStrict)
Appends new entries by specified Stream ID.
|
RFuture<StreamMessageId> |
addAsync(K key,
V value)
Appends a new entry and returns generated Stream ID
|
RFuture<StreamMessageId> |
addAsync(K key,
V value,
int trimLen,
boolean trimStrict)
Appends a new entry and returns generated Stream ID.
|
RFuture<Void> |
addAsync(StreamMessageId id,
K key,
V value)
Appends a new entry by specified Stream ID
|
RFuture<Void> |
addAsync(StreamMessageId id,
K key,
V value,
int trimLen,
boolean trimStrict)
Appends a new entry by specified Stream ID.
|
RFuture<Map<StreamMessageId,Map<K,V>>> |
claimAsync(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.
|
RFuture<Void> |
createGroupAsync(String groupName)
Creates consumer group by name.
|
RFuture<Void> |
createGroupAsync(String groupName,
StreamMessageId id)
Creates consumer group by name and stream id.
|
RFuture<List<StreamMessageId>> |
fastClaimAsync(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.
|
RFuture<StreamInfo<K,V>> |
getInfoAsync()
Returns information about this stream.
|
RFuture<PendingResult> |
getPendingInfoAsync(String groupName)
Returns common info about pending messages by group name.
|
RFuture<List<StreamConsumer>> |
listConsumersAsync(String groupName)
Returns list of objects with information about group customers for specified
groupName . |
RFuture<List<StreamGroup>> |
listGroupsAsync()
Returns list of objects with information about groups belonging to this stream.
|
RFuture<PendingResult> |
listPendingAsync(String groupName)
Deprecated.
|
RFuture<List<PendingEntry>> |
listPendingAsync(String groupName,
StreamMessageId startId,
StreamMessageId endId,
int count)
Returns list of common info about pending messages by group name.
|
RFuture<List<PendingEntry>> |
listPendingAsync(String groupName,
String consumerName,
StreamMessageId startId,
StreamMessageId endId,
int count)
Returns list of common info about pending messages by group and consumer name.
|
RFuture<Map<StreamMessageId,Map<K,V>>> |
pendingRangeAsync(String groupName,
StreamMessageId startId,
StreamMessageId endId,
int count)
Returns stream data of pending messages by group name.
|
RFuture<Map<StreamMessageId,Map<K,V>>> |
pendingRangeAsync(String groupName,
String consumerName,
StreamMessageId startId,
StreamMessageId endId,
int count)
Returns stream data of pending messages by group and customer name.
|
RFuture<Map<StreamMessageId,Map<K,V>>> |
rangeAsync(int count,
StreamMessageId startId,
StreamMessageId endId)
Returns stream data in range by specified start Stream ID (included) and end Stream ID (included).
|
RFuture<Map<StreamMessageId,Map<K,V>>> |
rangeAsync(StreamMessageId startId,
StreamMessageId endId)
Returns stream data in range by specified start Stream ID (included) and end Stream ID (included).
|
RFuture<Map<StreamMessageId,Map<K,V>>> |
rangeReversedAsync(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).
|
RFuture<Map<StreamMessageId,Map<K,V>>> |
rangeReversedAsync(StreamMessageId startId,
StreamMessageId endId)
Returns stream data in reverse order in range by specified start Stream ID (included) and end Stream ID (included).
|
RFuture<Map<StreamMessageId,Map<K,V>>> |
readAsync(int count,
long timeout,
TimeUnit unit,
StreamMessageId... ids)
Read stream data by specified collection of Stream IDs.
|
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readAsync(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.
|
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readAsync(int count,
long timeout,
TimeUnit unit,
StreamMessageId id,
String name2,
StreamMessageId id2)
Read stream data by specified stream name including this stream.
|
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readAsync(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.
|
RFuture<Map<StreamMessageId,Map<K,V>>> |
readAsync(int count,
StreamMessageId... ids)
Read stream data by specified collection of Stream IDs.
|
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readAsync(int count,
StreamMessageId id,
Map<String,StreamMessageId> nameToId)
Read stream data by specified stream id mapped by name including this stream.
|
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readAsync(int count,
StreamMessageId id,
String name2,
StreamMessageId id2)
Read stream data by specified stream name including this stream.
|
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readAsync(int count,
StreamMessageId id,
String name2,
StreamMessageId id2,
String name3,
StreamMessageId id3)
Read stream data by specified stream names including this stream.
|
RFuture<Map<StreamMessageId,Map<K,V>>> |
readAsync(long timeout,
TimeUnit unit,
StreamMessageId... ids)
Read stream data by specified collection of Stream IDs.
|
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readAsync(long timeout,
TimeUnit unit,
StreamMessageId id,
Map<String,StreamMessageId> nameToId)
Read stream data by specified stream id mapped by name including this stream.
|
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readAsync(long timeout,
TimeUnit unit,
StreamMessageId id,
String name2,
StreamMessageId id2)
Read stream data by specified stream name including this stream.
|
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readAsync(long timeout,
TimeUnit unit,
StreamMessageId id,
String name2,
StreamMessageId id2,
String name3,
StreamMessageId id3)
Read stream data by specified stream names including this stream.
|
RFuture<Map<StreamMessageId,Map<K,V>>> |
readAsync(StreamMessageId... ids)
Read stream data by specified collection of Stream IDs.
|
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readAsync(StreamMessageId id,
Map<String,StreamMessageId> nameToId)
Read stream data by specified stream id mapped by name including this stream.
|
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readAsync(StreamMessageId id,
String name2,
StreamMessageId id2)
Read stream data by specified stream name including this stream.
|
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readAsync(StreamMessageId id,
String name2,
StreamMessageId id2,
String name3,
StreamMessageId id3)
Read stream data by specified stream names including this stream.
|
RFuture<Map<StreamMessageId,Map<K,V>>> |
readGroupAsync(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. |
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readGroupAsync(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. |
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readGroupAsync(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. |
RFuture<Map<StreamMessageId,Map<K,V>>> |
readGroupAsync(String groupName,
String consumerName,
int count,
StreamMessageId... ids)
Read stream data from
groupName by consumerName and specified collection of Stream IDs. |
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readGroupAsync(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. |
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readGroupAsync(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. |
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readGroupAsync(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. |
RFuture<Map<StreamMessageId,Map<K,V>>> |
readGroupAsync(String groupName,
String consumerName,
long timeout,
TimeUnit unit,
StreamMessageId... ids)
Read stream data from
groupName by consumerName and specified collection of Stream IDs. |
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readGroupAsync(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. |
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readGroupAsync(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. |
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readGroupAsync(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. |
RFuture<Map<StreamMessageId,Map<K,V>>> |
readGroupAsync(String groupName,
String consumerName,
StreamMessageId... ids)
Read stream data from
groupName by consumerName and specified collection of Stream IDs. |
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readGroupAsync(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. |
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readGroupAsync(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. |
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readGroupAsync(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. |
RFuture<Long> |
removeAsync(StreamMessageId... ids)
Removes messages by id.
|
RFuture<Long> |
removeConsumerAsync(String groupName,
String consumerName)
Removes consumer of the group by name.
|
RFuture<Void> |
removeGroupAsync(String groupName)
Removes group by name.
|
RFuture<Long> |
sizeAsync()
Returns number of entries in stream
|
RFuture<Long> |
trimAsync(int size)
Trims stream to specified size
|
RFuture<Long> |
trimNonStrictAsync(int size)
Trims stream to few tens of entries more than specified length to trim.
|
RFuture<Void> |
updateGroupMessageIdAsync(String groupName,
StreamMessageId id)
Updates next message id delivered to consumers.
|
clearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsync
addListenerAsync, copyAsync, deleteAsync, dumpAsync, isExistsAsync, migrateAsync, moveAsync, removeListenerAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, touchAsync, unlinkAsync
RFuture<Void> createGroupAsync(String groupName)
groupName
- - name of groupRFuture<Void> createGroupAsync(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 idRFuture<Void> removeGroupAsync(String groupName)
groupName
- - name of groupRFuture<Long> removeConsumerAsync(String groupName, String consumerName)
groupName
- - name of groupconsumerName
- - name of consumerRFuture<Void> updateGroupMessageIdAsync(String groupName, StreamMessageId id)
groupName
- - name of groupid
- - Stream Message IDRFuture<Long> ackAsync(String groupName, StreamMessageId... ids)
ids
as correctly processed.groupName
- - name of groupids
- - stream idsRFuture<PendingResult> getPendingInfoAsync(String groupName)
groupName
- - name of group@Deprecated RFuture<PendingResult> listPendingAsync(String groupName)
RFuture<List<PendingEntry>> listPendingAsync(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 messagespendingRangeAsync(java.lang.String, org.redisson.api.StreamMessageId, org.redisson.api.StreamMessageId, int)
RFuture<List<PendingEntry>> listPendingAsync(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 messagespendingRangeAsync(java.lang.String, org.redisson.api.StreamMessageId, org.redisson.api.StreamMessageId, int)
RFuture<Map<StreamMessageId,Map<K,V>>> pendingRangeAsync(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 messageslistPendingAsync(java.lang.String)
RFuture<Map<StreamMessageId,Map<K,V>>> pendingRangeAsync(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 messageslistPendingAsync(java.lang.String)
RFuture<Map<StreamMessageId,Map<K,V>>> claimAsync(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 idsRFuture<List<StreamMessageId>> fastClaimAsync(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 Message IDsRFuture<Map<StreamMessageId,Map<K,V>>> readGroupAsync(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 IDsRFuture<Map<StreamMessageId,Map<K,V>>> readGroupAsync(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 IDsRFuture<Map<StreamMessageId,Map<K,V>>> readGroupAsync(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 IDsRFuture<Map<StreamMessageId,Map<K,V>>> readGroupAsync(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 IDsRFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readGroupAsync(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 nameRFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readGroupAsync(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 nameRFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readGroupAsync(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 streamRFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readGroupAsync(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 streamRFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readGroupAsync(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 nameRFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readGroupAsync(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 streamRFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readGroupAsync(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 streamRFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readGroupAsync(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 streamRFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readGroupAsync(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 streamRFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readGroupAsync(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 streamRFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readGroupAsync(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 streamRFuture<StreamMessageId> addAsync(K key, V value)
key
- - key of entryvalue
- - value of entryRFuture<Void> addAsync(StreamMessageId id, K key, V value)
id
- - Stream IDkey
- - key of entryvalue
- - value of entryRFuture<StreamMessageId> addAsync(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 trimRFuture<Void> addAsync(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 trimRFuture<StreamMessageId> addAllAsync(Map<K,V> entries)
entries
- - entries to addRFuture<Void> addAllAsync(StreamMessageId id, Map<K,V> entries)
id
- - Stream IDentries
- - entries to addRFuture<StreamMessageId> addAllAsync(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 trimRFuture<Void> addAllAsync(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 trimRFuture<Map<StreamMessageId,Map<K,V>>> readAsync(StreamMessageId... ids)
ids
- - collection of Stream IDsRFuture<Map<StreamMessageId,Map<K,V>>> readAsync(int count, StreamMessageId... ids)
count
- - stream data size limitids
- - collection of Stream IDsRFuture<Map<StreamMessageId,Map<K,V>>> readAsync(long timeout, TimeUnit unit, StreamMessageId... ids)
timeout
interval.timeout
- - time interval to wait for stream data availabilityunit
- - time interval unitids
- - collection of Stream IDsRFuture<Map<StreamMessageId,Map<K,V>>> readAsync(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 IDsRFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(StreamMessageId id, String name2, StreamMessageId id2)
id
- - id of this streamname2
- - name of second streamid2
- - id of second streamRFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(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 streamRFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(StreamMessageId id, Map<String,StreamMessageId> nameToId)
id
- - id of this streamnameToId
- - stream id mapped by nameRFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(int count, StreamMessageId id, String name2, StreamMessageId id2)
count
- - stream data size limitid
- - id of this streamname2
- - name of second streamid2
- - id of second streamRFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(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 streamRFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(int count, StreamMessageId id, Map<String,StreamMessageId> nameToId)
count
- - stream data size limitid
- - id of this streamnameToId
- - stream id mapped by nameRFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(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 streamRFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(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 streamRFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(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 nameRFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(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 streamRFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(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 streamRFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(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 nameRFuture<Map<StreamMessageId,Map<K,V>>> rangeAsync(StreamMessageId startId, StreamMessageId endId)
startId
- - start Stream IDendId
- - end Stream IDRFuture<Map<StreamMessageId,Map<K,V>>> rangeAsync(int count, StreamMessageId startId, StreamMessageId endId)
count
- - stream data size limitstartId
- - start Stream IDendId
- - end Stream IDRFuture<Map<StreamMessageId,Map<K,V>>> rangeReversedAsync(StreamMessageId startId, StreamMessageId endId)
startId
- - start Stream IDendId
- - end Stream IDRFuture<Map<StreamMessageId,Map<K,V>>> rangeReversedAsync(int count, StreamMessageId startId, StreamMessageId endId)
count
- - stream data size limitstartId
- - start Stream IDendId
- - end Stream IDRFuture<Long> removeAsync(StreamMessageId... ids)
ids
- - id of messages to removeRFuture<Long> trimAsync(int size)
size
- - new size of streamRFuture<Long> trimNonStrictAsync(int size)
size
- - new size of streamRFuture<StreamInfo<K,V>> getInfoAsync()
RFuture<List<StreamGroup>> listGroupsAsync()
RFuture<List<StreamConsumer>> listConsumersAsync(String groupName)
groupName
.groupName
- - name of groupCopyright © 2014–2020 Redisson. All rights reserved.