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)
Deprecated.
|
RFuture<StreamMessageId> |
addAllAsync(Map<K,V> entries,
int trimLen,
boolean trimStrict)
Deprecated.
|
RFuture<Void> |
addAllAsync(StreamMessageId id,
Map<K,V> entries)
Deprecated.
|
RFuture<Void> |
addAllAsync(StreamMessageId id,
Map<K,V> entries,
int trimLen,
boolean trimStrict)
Deprecated.
|
RFuture<StreamMessageId> |
addAsync(K key,
V value)
Deprecated.
|
RFuture<StreamMessageId> |
addAsync(K key,
V value,
int trimLen,
boolean trimStrict)
Deprecated.
|
RFuture<StreamMessageId> |
addAsync(StreamAddArgs<K,V> args)
Appends a new entry/entries and returns generated Stream Message ID
|
RFuture<Void> |
addAsync(StreamMessageId id,
K key,
V value)
Deprecated.
|
RFuture<Void> |
addAsync(StreamMessageId id,
K key,
V value,
int trimLen,
boolean trimStrict)
Deprecated.
|
RFuture<Void> |
addAsync(StreamMessageId id,
StreamAddArgs<K,V> args)
Appends a new entry/entries by specified Stream Message ID
|
RFuture<AutoClaimResult<K,V>> |
autoClaimAsync(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.
|
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> |
createConsumerAsync(String groupName,
String consumerName)
Creates consumer of the group by name.
|
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<FastAutoClaimResult> |
fastAutoClaimAsync(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.
|
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<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,
StreamMessageId startId,
StreamMessageId endId,
long idleTime,
TimeUnit idleTimeUnit,
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<List<PendingEntry>> |
listPendingAsync(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.
|
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,
StreamMessageId startId,
StreamMessageId endId,
long idleTime,
TimeUnit idleTimeUnit,
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>>> |
pendingRangeAsync(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.
|
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)
Deprecated.
|
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readAsync(int count,
long timeout,
TimeUnit unit,
StreamMessageId id,
Map<String,StreamMessageId> nameToId)
Deprecated.
|
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readAsync(int count,
long timeout,
TimeUnit unit,
StreamMessageId id,
String name2,
StreamMessageId id2)
Deprecated.
|
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)
Deprecated.
|
RFuture<Map<StreamMessageId,Map<K,V>>> |
readAsync(int count,
StreamMessageId... ids)
Deprecated.
|
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readAsync(int count,
StreamMessageId id,
Map<String,StreamMessageId> nameToId)
Deprecated.
|
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readAsync(int count,
StreamMessageId id,
String name2,
StreamMessageId id2)
Deprecated.
|
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readAsync(int count,
StreamMessageId id,
String name2,
StreamMessageId id2,
String name3,
StreamMessageId id3)
Deprecated.
|
RFuture<Map<StreamMessageId,Map<K,V>>> |
readAsync(long timeout,
TimeUnit unit,
StreamMessageId... ids)
Deprecated.
|
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readAsync(long timeout,
TimeUnit unit,
StreamMessageId id,
Map<String,StreamMessageId> nameToId)
Deprecated.
|
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readAsync(long timeout,
TimeUnit unit,
StreamMessageId id,
String name2,
StreamMessageId id2)
Deprecated.
|
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readAsync(long timeout,
TimeUnit unit,
StreamMessageId id,
String name2,
StreamMessageId id2,
String name3,
StreamMessageId id3)
Deprecated.
|
RFuture<Map<StreamMessageId,Map<K,V>>> |
readAsync(StreamMessageId... ids)
Deprecated.
|
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readAsync(StreamMessageId id,
Map<String,StreamMessageId> nameToId)
Deprecated.
|
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readAsync(StreamMessageId id,
String name2,
StreamMessageId id2)
Deprecated.
|
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readAsync(StreamMessageId id,
String name2,
StreamMessageId id2,
String name3,
StreamMessageId id3)
Deprecated.
|
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readAsync(StreamMultiReadArgs args)
Read stream data from multiple streams including current.
|
RFuture<Map<StreamMessageId,Map<K,V>>> |
readAsync(StreamReadArgs args)
Read stream data from current stream only.
|
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<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readGroupAsync(String groupName,
String consumerName,
StreamMultiReadGroupArgs args)
Read stream data from consumer group and multiple streams including current.
|
RFuture<Map<StreamMessageId,Map<K,V>>> |
readGroupAsync(String groupName,
String consumerName,
StreamReadGroupArgs args)
Read stream data from consumer group and current stream only.
|
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 using MAXLEN strategy to specified size
|
RFuture<Long> |
trimAsync(TrimStrategy strategy,
int threshold)
Trims stream to specified size
|
RFuture<Long> |
trimNonStrictAsync(int size)
Trims stream using MAXLEN strategy to almost exact trimming threshold.
|
RFuture<Long> |
trimNonStrictAsync(TrimStrategy strategy,
int threshold)
Trims stream using almost exact trimming threshold.
|
RFuture<Long> |
trimNonStrictAsync(TrimStrategy strategy,
int threshold,
int limit)
Trims stream using almost exact trimming threshold up to limit.
|
RFuture<Void> |
updateGroupMessageIdAsync(String groupName,
StreamMessageId id)
Updates next message id delivered to consumers.
|
clearExpireAsync, expireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsync
addListenerAsync, copyAsync, deleteAsync, dumpAsync, getIdleTimeAsync, 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<Void> createConsumerAsync(String groupName, String consumerName)
Requires Redis 6.2.0 and higher.
groupName
- - name of groupconsumerName
- - name of consumerRFuture<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 groupRFuture<List<PendingEntry>> listPendingAsync(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 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, 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 messagespendingRangeAsync(java.lang.String, org.redisson.api.StreamMessageId, org.redisson.api.StreamMessageId, int)
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, org.redisson.api.StreamMessageId, org.redisson.api.StreamMessageId, long, java.util.concurrent.TimeUnit, int)
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, org.redisson.api.StreamMessageId, org.redisson.api.StreamMessageId, long, java.util.concurrent.TimeUnit, int)
RFuture<Map<StreamMessageId,Map<K,V>>> pendingRangeAsync(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 messageslistPendingAsync(java.lang.String, org.redisson.api.StreamMessageId, org.redisson.api.StreamMessageId, long, java.util.concurrent.TimeUnit, int)
RFuture<Map<StreamMessageId,Map<K,V>>> pendingRangeAsync(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 messageslistPendingAsync(java.lang.String, org.redisson.api.StreamMessageId, org.redisson.api.StreamMessageId, long, java.util.concurrent.TimeUnit, int)
RFuture<AutoClaimResult<K,V>> autoClaimAsync(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 IDRFuture<FastAutoClaimResult> fastAutoClaimAsync(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 IDRFuture<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 Message 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<String,Map<StreamMessageId,Map<K,V>>>> readGroupAsync(String groupName, String consumerName, StreamMultiReadGroupArgs args)
args
- - method arguments objectRFuture<Map<StreamMessageId,Map<K,V>>> readGroupAsync(String groupName, String consumerName, StreamReadGroupArgs args)
args
- - method arguments objectRFuture<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(StreamAddArgs<K,V> args)
args
- - method arguments objectRFuture<Void> addAsync(StreamMessageId id, StreamAddArgs<K,V> args)
id
- - Stream Message IDargs
- - method arguments object@Deprecated RFuture<StreamMessageId> addAsync(K key, V value)
@Deprecated RFuture<Void> addAsync(StreamMessageId id, K key, V value)
@Deprecated RFuture<StreamMessageId> addAsync(K key, V value, int trimLen, boolean trimStrict)
@Deprecated RFuture<Void> addAsync(StreamMessageId id, K key, V value, int trimLen, boolean trimStrict)
@Deprecated RFuture<StreamMessageId> addAllAsync(Map<K,V> entries)
@Deprecated RFuture<Void> addAllAsync(StreamMessageId id, Map<K,V> entries)
@Deprecated RFuture<StreamMessageId> addAllAsync(Map<K,V> entries, int trimLen, boolean trimStrict)
@Deprecated RFuture<Void> addAllAsync(StreamMessageId id, Map<K,V> entries, int trimLen, boolean trimStrict)
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(StreamMultiReadArgs args)
args
- - method arguments objectRFuture<Map<StreamMessageId,Map<K,V>>> readAsync(StreamReadArgs args)
args
- - method arguments object@Deprecated RFuture<Map<StreamMessageId,Map<K,V>>> readAsync(StreamMessageId... ids)
@Deprecated RFuture<Map<StreamMessageId,Map<K,V>>> readAsync(int count, StreamMessageId... ids)
@Deprecated RFuture<Map<StreamMessageId,Map<K,V>>> readAsync(long timeout, TimeUnit unit, StreamMessageId... ids)
@Deprecated RFuture<Map<StreamMessageId,Map<K,V>>> readAsync(int count, long timeout, TimeUnit unit, StreamMessageId... ids)
@Deprecated RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(StreamMessageId id, String name2, StreamMessageId id2)
@Deprecated RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(StreamMessageId id, String name2, StreamMessageId id2, String name3, StreamMessageId id3)
@Deprecated RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(StreamMessageId id, Map<String,StreamMessageId> nameToId)
@Deprecated RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(int count, StreamMessageId id, String name2, StreamMessageId id2)
@Deprecated RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(int count, StreamMessageId id, String name2, StreamMessageId id2, String name3, StreamMessageId id3)
@Deprecated RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(int count, StreamMessageId id, Map<String,StreamMessageId> nameToId)
@Deprecated RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(long timeout, TimeUnit unit, StreamMessageId id, String name2, StreamMessageId id2)
@Deprecated RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(long timeout, TimeUnit unit, StreamMessageId id, String name2, StreamMessageId id2, String name3, StreamMessageId id3)
@Deprecated RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(long timeout, TimeUnit unit, StreamMessageId id, Map<String,StreamMessageId> nameToId)
@Deprecated RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(int count, long timeout, TimeUnit unit, StreamMessageId id, String name2, StreamMessageId id2)
@Deprecated 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)
@Deprecated RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(int count, long timeout, TimeUnit unit, StreamMessageId id, Map<String,StreamMessageId> nameToId)
RFuture<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> trimAsync(TrimStrategy strategy, int threshold)
strategy
- - trim strategythreshold
- - new size of streamRFuture<Long> trimNonStrictAsync(int size)
size
- - new size of streamRFuture<Long> trimNonStrictAsync(TrimStrategy strategy, int threshold)
strategy
- - trim strategythreshold
- - trim thresholdRFuture<Long> trimNonStrictAsync(TrimStrategy strategy, int threshold, int limit)
strategy
- - trim strategythreshold
- - trim thresholdlimit
- - trim limitRFuture<StreamInfo<K,V>> getInfoAsync()
RFuture<List<StreamGroup>> listGroupsAsync()
RFuture<List<StreamConsumer>> listConsumersAsync(String groupName)
groupName
.groupName
- - name of groupCopyright © 2014–2021 Redisson. All rights reserved.