Interface RStreamAsync<K,V>
-
- Type Parameters:
K
- key typeV
- value type
- All Superinterfaces:
RExpirableAsync
,RObjectAsync
- All Known Subinterfaces:
RStream<K,V>
- All Known Implementing Classes:
RedissonStream
public interface RStreamAsync<K,V> extends RExpirableAsync
Async interface for Redis Stream object.Requires Redis 5.0.0 and higher.
- Author:
- Nikita Koksharov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description >
groupName, StreamMessageId... ids)
Marks pending messages by group name and streamids
as correctly processed.RFuture<StreamMessageId>
<K,V> entries)
Deprecated.RFuture<StreamMessageId>
<K,V> entries, int trimLen, boolean trimStrict)
Deprecated.>
addAllAsync(StreamMessageId id, <K,V> entries)
Deprecated.>
addAllAsync(StreamMessageId id, <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>
addAsync(StreamMessageId id, K key, V value)
Deprecated.>
addAsync(StreamMessageId id, K key, V value, int trimLen, boolean trimStrict)
Deprecated.>
addAsync(StreamMessageId id, StreamAddArgs<K,V> args)
Appends a new entry/entries by specified Stream Message IDRFuture<AutoClaimResult<K,V>>
groupName, consumerName, long idleTime, 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.<<K,V>>>
groupName, consumerName, long idleTime, 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.>
groupName, consumerName)
Creates consumer of the group by name.>
groupName)
Creates consumer group by name.>
groupName, StreamMessageId id)
Creates consumer group by name and stream id.RFuture<FastAutoClaimResult>
groupName, consumerName, long idleTime, 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.<StreamMessageId>>
groupName, consumerName, long idleTime, 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>
groupName)
Returns common info about pending messages by group name.<StreamConsumer>>
groupName)
Returns list of objects with information about group customers for specifiedgroupName
.<StreamGroup>>
listGroupsAsync()
Returns list of objects with information about groups belonging to this stream.<PendingEntry>>
groupName, consumerName, StreamMessageId startId, StreamMessageId endId, int count)
Returns list of common info about pending messages by group and consumer name.<PendingEntry>>
groupName, consumerName, StreamMessageId startId, StreamMessageId endId, long idleTime, idleTimeUnit, int count)
Returns list of common info about pending messages by group and consumer name.<PendingEntry>>
groupName, StreamMessageId startId, StreamMessageId endId, int count)
Returns list of common info about pending messages by group name.<PendingEntry>>
groupName, StreamMessageId startId, StreamMessageId endId, long idleTime, idleTimeUnit, int count)
Returns list of common info about pending messages by group name.<<K,V>>>
groupName, consumerName, StreamMessageId startId, StreamMessageId endId, int count)
Returns stream data of pending messages by group and customer name.<<K,V>>>
groupName, consumerName, StreamMessageId startId, StreamMessageId endId, long idleTime, idleTimeUnit, int count)
Returns stream data of pending messages by group and customer name.<<K,V>>>
groupName, StreamMessageId startId, StreamMessageId endId, int count)
Returns stream data of pending messages by group name.<<K,V>>>
groupName, StreamMessageId startId, StreamMessageId endId, long idleTime, idleTimeUnit, int count)
Returns stream data of pending messages by group name.<<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).<<K,V>>>
rangeAsync(StreamMessageId startId, StreamMessageId endId)
Returns stream data in range by specified start Stream ID (included) and end Stream ID (included).<<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).<<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).<<K,V>>>
readAsync(int count, long timeout, unit, StreamMessageId... ids)
Deprecated.<,<<K,V>>>>
readAsync(int count, long timeout, unit, StreamMessageId id, name2, StreamMessageId id2)
Deprecated.<,<<K,V>>>>
readAsync(int count, long timeout, unit, StreamMessageId id, name2, StreamMessageId id2, name3, StreamMessageId id3)
Deprecated.<,<<K,V>>>>
readAsync(int count, long timeout, unit, StreamMessageId id, <,StreamMessageId> nameToId)
Deprecated.<<K,V>>>
readAsync(int count, StreamMessageId... ids)
Deprecated.<,<<K,V>>>>
readAsync(int count, StreamMessageId id, name2, StreamMessageId id2)
Deprecated.<,<<K,V>>>>
readAsync(int count, StreamMessageId id, name2, StreamMessageId id2, name3, StreamMessageId id3)
Deprecated.<,<<K,V>>>>
readAsync(int count, StreamMessageId id, <,StreamMessageId> nameToId)
Deprecated.<<K,V>>>
readAsync(long timeout, unit, StreamMessageId... ids)
Deprecated.<,<<K,V>>>>
readAsync(long timeout, unit, StreamMessageId id, name2, StreamMessageId id2)
Deprecated.<,<<K,V>>>>
readAsync(long timeout, unit, StreamMessageId id, name2, StreamMessageId id2, name3, StreamMessageId id3)
Deprecated.<,<<K,V>>>>
readAsync(long timeout, unit, StreamMessageId id, <,StreamMessageId> nameToId)
Deprecated.<,<<K,V>>>>
readAsync(StreamMultiReadArgs args)
Read stream data from multiple streams including current.<<K,V>>>
readAsync(StreamReadArgs args)
Read stream data from current stream only.<<K,V>>>
readAsync(StreamMessageId... ids)
Deprecated.<,<<K,V>>>>
readAsync(StreamMessageId id, name2, StreamMessageId id2)
Deprecated.<,<<K,V>>>>
readAsync(StreamMessageId id, name2, StreamMessageId id2, name3, StreamMessageId id3)
Deprecated.<,<<K,V>>>>
readAsync(StreamMessageId id, <,StreamMessageId> nameToId)
Deprecated.<<K,V>>>
groupName, consumerName, int count, long timeout, unit, StreamMessageId... ids)
Read stream data fromgroupName
byconsumerName
and specified collection of Stream IDs.<,<<K,V>>>>
groupName, consumerName, int count, long timeout, unit, StreamMessageId id, key2, StreamMessageId id2)
Read stream data fromgroupName
byconsumerName
, starting by specified message ids for this and other streams.<,<<K,V>>>>
groupName, consumerName, int count, long timeout, unit, StreamMessageId id, key2, StreamMessageId id2, key3, StreamMessageId id3)
Read stream data fromgroupName
byconsumerName
, starting by specified message ids for this and other streams.<<K,V>>>
groupName, consumerName, int count, StreamMessageId... ids)
Read stream data fromgroupName
byconsumerName
and specified collection of Stream IDs.<,<<K,V>>>>
groupName, consumerName, int count, StreamMessageId id, key2, StreamMessageId id2)
Read stream data fromgroupName
byconsumerName
, starting by specified message ids for this and other streams.<,<<K,V>>>>
groupName, consumerName, int count, StreamMessageId id, key2, StreamMessageId id2, key3, StreamMessageId id3)
Read stream data fromgroupName
byconsumerName
, starting by specified message ids for this and other streams.<,<<K,V>>>>
groupName, consumerName, int count, StreamMessageId id, <,StreamMessageId> nameToId)
Read stream data fromgroupName
byconsumerName
, starting by specified message ids for this and other streams.<<K,V>>>
groupName, consumerName, long timeout, unit, StreamMessageId... ids)
Read stream data fromgroupName
byconsumerName
and specified collection of Stream IDs.<,<<K,V>>>>
groupName, consumerName, long timeout, unit, StreamMessageId id, key2, StreamMessageId id2)
Read stream data fromgroupName
byconsumerName
, starting by specified message ids for this and other streams.<,<<K,V>>>>
groupName, consumerName, long timeout, unit, StreamMessageId id, key2, StreamMessageId id2, key3, StreamMessageId id3)
Read stream data fromgroupName
byconsumerName
, starting by specified message ids for this and other streams.<,<<K,V>>>>
groupName, consumerName, long timeout, unit, StreamMessageId id, <,StreamMessageId> nameToId)
Read stream data fromgroupName
byconsumerName
, starting by specified message ids for this and other streams.<,<<K,V>>>>
groupName, consumerName, StreamMultiReadGroupArgs args)
Read stream data from consumer group and multiple streams including current.<<K,V>>>
groupName, consumerName, StreamReadGroupArgs args)
Read stream data from consumer group and current stream only.<<K,V>>>
groupName, consumerName, StreamMessageId... ids)
Read stream data fromgroupName
byconsumerName
and specified collection of Stream IDs.<,<<K,V>>>>
groupName, consumerName, StreamMessageId id, key2, StreamMessageId id2)
Read stream data fromgroupName
byconsumerName
, starting by specified message ids for this and other streams.<,<<K,V>>>>
groupName, consumerName, StreamMessageId id, key2, StreamMessageId id2, key3, StreamMessageId id3)
Read stream data fromgroupName
byconsumerName
, starting by specified message ids for this and other streams.<,<<K,V>>>>
groupName, consumerName, StreamMessageId id, <,StreamMessageId> nameToId)
Read stream data fromgroupName
byconsumerName
, starting by specified message ids for this and other streams.>
removeAsync(StreamMessageId... ids)
Removes messages by id.>
groupName, consumerName)
Removes consumer of the group by name.>
groupName)
Removes group by name.>
sizeAsync()
Returns number of entries in stream>
trimAsync(int size)
Trims stream using MAXLEN strategy to specified size>
trimAsync(TrimStrategy strategy, int threshold)
Trims stream to specified size>
trimNonStrictAsync(int size)
Trims stream using MAXLEN strategy to almost exact trimming threshold.>
trimNonStrictAsync(TrimStrategy strategy, int threshold)
Trims stream using almost exact trimming threshold.>
trimNonStrictAsync(TrimStrategy strategy, int threshold, int limit)
Trims stream using almost exact trimming threshold up to limit.>
groupName, StreamMessageId id)
Updates next message id delivered to consumers.-
Methods inherited from interface org.redisson.api.RExpirableAsync
clearExpireAsync, expireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsync
-
Methods inherited from interface org.redisson.api.RObjectAsync
addListenerAsync, copyAsync, deleteAsync, dumpAsync, getIdleTimeAsync, isExistsAsync, migrateAsync, moveAsync, removeListenerAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, touchAsync, unlinkAsync
-
-
-
-
Method Detail
-
createGroupAsync
> createGroupAsync( groupName)
Creates consumer group by name.- Parameters:
groupName
- - name of group- Returns:
- void
-
createGroupAsync
> createGroupAsync( groupName, StreamMessageId id)
Creates consumer group by name and stream id. Only new messages after defined streamid
will be available for consumers of this group.StreamMessageId.NEWEST
is used for messages arrived since the moment of group creating- Parameters:
groupName
- - name of groupid
- - stream id- Returns:
- void
-
removeGroupAsync
> removeGroupAsync( groupName)
Removes group by name.- Parameters:
groupName
- - name of group- Returns:
- void
-
createConsumerAsync
> createConsumerAsync( groupName, consumerName)
Creates consumer of the group by name.Requires Redis 6.2.0 and higher.
- Parameters:
groupName
- - name of groupconsumerName
- - name of consumer
-
removeConsumerAsync
> removeConsumerAsync( groupName, consumerName)
Removes consumer of the group by name.- Parameters:
groupName
- - name of groupconsumerName
- - name of consumer- Returns:
- number of pending messages owned by consumer
-
updateGroupMessageIdAsync
> updateGroupMessageIdAsync( groupName, StreamMessageId id)
Updates next message id delivered to consumers.- Parameters:
groupName
- - name of groupid
- - Stream Message ID- Returns:
- void
-
ackAsync
> ackAsync( groupName, StreamMessageId... ids)
Marks pending messages by group name and streamids
as correctly processed.- Parameters:
groupName
- - name of groupids
- - stream ids- Returns:
- marked messages amount
-
getPendingInfoAsync
groupName)
Returns common info about pending messages by group name.- Parameters:
groupName
- - name of group- Returns:
- result object
-
listPendingAsync
< groupName, StreamMessageId startId, StreamMessageId endId, long idleTime, idleTimeUnit, int count)
Returns list of common info about pending messages by group name. Limited by minimum idle time, messages count, start and end Stream Message IDs.StreamMessageId.MAX
is used as max Stream Message IDStreamMessageId.MIN
is used as min Stream Message IDRequires Redis 6.2.0 and higher.
- Parameters:
groupName
- - name of groupstartId
- - start Stream Message IDidleTime
- - minimum idle time of messagesidleTimeUnit
- - idle time unitendId
- - end Stream Message IDcount
- - amount of messages- Returns:
- list
- See Also:
pendingRangeAsync(java.lang.String, org.redisson.api.StreamMessageId, org.redisson.api.StreamMessageId, int)
-
listPendingAsync
< groupName, consumerName, StreamMessageId startId, StreamMessageId endId, long idleTime, idleTimeUnit, int count)
Returns list of common info about pending messages by group and consumer name. Limited by minimum idle time, messages count, start and end Stream Message IDs.StreamMessageId.MAX
is used as max Stream Message IDStreamMessageId.MIN
is used as min Stream Message IDRequires Redis 6.2.0 and higher.
- Parameters:
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 messages- Returns:
- list
- See Also:
pendingRangeAsync(java.lang.String, org.redisson.api.StreamMessageId, org.redisson.api.StreamMessageId, int)
-
listPendingAsync
< groupName, StreamMessageId startId, StreamMessageId endId, int count)
Returns list of common info about pending messages by group name. Limited by start Stream Message ID and end Stream Message ID and count.StreamMessageId.MAX
is used as max Stream Message IDStreamMessageId.MIN
is used as min Stream Message ID- Parameters:
groupName
- - name of groupstartId
- - start Stream Message IDendId
- - end Stream Message IDcount
- - amount of messages- Returns:
- list
- See Also:
pendingRangeAsync(java.lang.String, org.redisson.api.StreamMessageId, org.redisson.api.StreamMessageId, int)
-
listPendingAsync
< groupName, consumerName, StreamMessageId startId, StreamMessageId endId, int count)
Returns list of common info about pending messages by group and consumer name. Limited by start Stream Message ID and end Stream Message ID and count.StreamMessageId.MAX
is used as max Stream Message IDStreamMessageId.MIN
is used as min Stream Message ID- Parameters:
consumerName
- - name of consumergroupName
- - name of groupstartId
- - start Stream Message IDendId
- - end Stream Message IDcount
- - amount of messages- Returns:
- list
- See Also:
pendingRangeAsync(java.lang.String, org.redisson.api.StreamMessageId, org.redisson.api.StreamMessageId, int)
-
pendingRangeAsync
<< groupName, StreamMessageId startId, StreamMessageId endId, int count)
Returns stream data of pending messages by group name. Limited by start Stream Message ID and end Stream Message ID and count.StreamMessageId.MAX
is used as max Stream Message IDStreamMessageId.MIN
is used as min Stream Message ID- Parameters:
groupName
- - name of groupstartId
- - start Stream Message IDendId
- - end Stream Message IDcount
- - amount of messages- Returns:
- map
- See Also:
listPendingAsync(java.lang.String, org.redisson.api.StreamMessageId, org.redisson.api.StreamMessageId, long, java.util.concurrent.TimeUnit, int)
-
pendingRangeAsync
<< groupName, consumerName, StreamMessageId startId, StreamMessageId endId, int count)
Returns stream data of pending messages by group and customer name. Limited by start Stream Message ID and end Stream Message ID and count.StreamMessageId.MAX
is used as max Stream Message IDStreamMessageId.MIN
is used as min Stream Message ID- Parameters:
consumerName
- - name of consumergroupName
- - name of groupstartId
- - start Stream Message IDendId
- - end Stream Message IDcount
- - amount of messages- Returns:
- map
- See Also:
listPendingAsync(java.lang.String, org.redisson.api.StreamMessageId, org.redisson.api.StreamMessageId, long, java.util.concurrent.TimeUnit, int)
-
pendingRangeAsync
<< groupName, StreamMessageId startId, StreamMessageId endId, long idleTime, idleTimeUnit, int count)
Returns stream data of pending messages by group name. Limited by minimum idle time, messages count, start and end Stream Message IDs.StreamMessageId.MAX
is used as max Stream Message IDStreamMessageId.MIN
is used as min Stream Message IDRequires Redis 6.2.0 and higher.
- Parameters:
groupName
- - name of groupstartId
- - start Stream Message IDendId
- - end Stream Message IDidleTime
- - minimum idle time of messagesidleTimeUnit
- - idle time unitcount
- - amount of messages- Returns:
- map
- See Also:
listPendingAsync(java.lang.String, org.redisson.api.StreamMessageId, org.redisson.api.StreamMessageId, long, java.util.concurrent.TimeUnit, int)
-
pendingRangeAsync
<< groupName, consumerName, StreamMessageId startId, StreamMessageId endId, long idleTime, idleTimeUnit, int count)
Returns stream data of pending messages by group and customer name. Limited by minimum idle time, messages count, start and end Stream Message IDs.StreamMessageId.MAX
is used as max Stream Message IDStreamMessageId.MIN
is used as min Stream Message IDRequires Redis 6.2.0 and higher.
- Parameters:
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 messages- Returns:
- map
- See Also:
listPendingAsync(java.lang.String, org.redisson.api.StreamMessageId, org.redisson.api.StreamMessageId, long, java.util.concurrent.TimeUnit, int)
-
autoClaimAsync
groupName, consumerName, long idleTime, 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.- Parameters:
groupName
- - name of groupconsumerName
- - name of consumeridleTime
- - minimum idle time of messagesidleTimeUnit
- - idle time unitstartId
- - start Stream Message ID- Returns:
- stream data mapped by Stream ID
-
fastAutoClaimAsync
groupName, consumerName, long idleTime, 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.- Parameters:
groupName
- - name of groupconsumerName
- - name of consumeridleTime
- - minimum idle time of messagesidleTimeUnit
- - idle time unitstartId
- - start Stream Message ID- Returns:
- list of Stream Message IDs
-
claimAsync
<< groupName, consumerName, long idleTime, 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.- Parameters:
groupName
- - name of groupconsumerName
- - name of consumeridleTime
- - minimum idle time of messagesidleTimeUnit
- - idle time unitids
- - Stream Message IDs- Returns:
- stream data mapped by Stream ID
-
fastClaimAsync
< groupName, consumerName, long idleTime, 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.- Parameters:
groupName
- - name of groupconsumerName
- - name of consumeridleTime
- - minimum idle time of messagesidleTimeUnit
- - idle time unitids
- - Stream Message IDs- Returns:
- list of Stream Message IDs
-
readGroupAsync
<,<< groupName, consumerName, StreamMultiReadGroupArgs args)
Read stream data from consumer group and multiple streams including current.- Parameters:
args
- - method arguments object- Returns:
- stream data mapped by stream name and Stream Message ID
-
readGroupAsync
<< groupName, consumerName, StreamReadGroupArgs args)
Read stream data from consumer group and current stream only.- Parameters:
args
- - method arguments object- Returns:
- stream data mapped by Stream Message ID
-
readGroupAsync
<< groupName, consumerName, StreamMessageId... ids)
Read stream data fromgroupName
byconsumerName
and specified collection of Stream IDs.- Parameters:
groupName
- - name of groupconsumerName
- - name of consumerids
- - collection of Stream IDs- Returns:
- stream data mapped by Stream ID
-
readGroupAsync
<< groupName, consumerName, int count, StreamMessageId... ids)
Read stream data fromgroupName
byconsumerName
and specified collection of Stream IDs.- Parameters:
groupName
- - name of groupconsumerName
- - name of consumercount
- - stream data size limitids
- - collection of Stream IDs- Returns:
- stream data mapped by Stream ID
-
readGroupAsync
<< groupName, consumerName, long timeout, unit, StreamMessageId... ids)
Read stream data fromgroupName
byconsumerName
and specified collection of Stream IDs. Wait for stream data availability for specifiedtimeout
interval.- Parameters:
groupName
- - name of groupconsumerName
- - name of consumertimeout
- - time interval to wait for stream data availabilityunit
- - time interval unitids
- - collection of Stream IDs- Returns:
- stream data mapped by Stream ID
-
readGroupAsync
<< groupName, consumerName, int count, long timeout, unit, StreamMessageId... ids)
Read stream data fromgroupName
byconsumerName
and specified collection of Stream IDs. Wait for stream data availability for specifiedtimeout
interval.- Parameters:
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 IDs- Returns:
- stream data mapped by Stream ID
-
readGroupAsync
<,<< groupName, consumerName, StreamMessageId id, <,StreamMessageId> nameToId)
Read stream data fromgroupName
byconsumerName
, starting by specified message ids for this and other streams.- Parameters:
groupName
- - name of groupconsumerName
- - name of consumerid
- - starting message id for this streamnameToId
- - Stream Message ID mapped by stream name- Returns:
- stream data mapped by key and Stream Message ID
-
readGroupAsync
<,<< groupName, consumerName, int count, StreamMessageId id, <,StreamMessageId> nameToId)
Read stream data fromgroupName
byconsumerName
, starting by specified message ids for this and other streams.- Parameters:
groupName
- - name of groupconsumerName
- - name of consumercount
- - stream data size limitid
- - starting message id for this streamnameToId
- - Stream Message ID mapped by stream name- Returns:
- stream data mapped by key and Stream Message ID
-
readGroupAsync
<,<< groupName, consumerName, int count, long timeout, unit, StreamMessageId id, key2, StreamMessageId id2)
Read stream data fromgroupName
byconsumerName
, starting by specified message ids for this and other streams. Waits for the first stream data availability for specifiedtimeout
interval.- Parameters:
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 stream- Returns:
- stream data mapped by key and Stream Message ID
-
readGroupAsync
<,<< groupName, consumerName, int count, long timeout, unit, StreamMessageId id, key2, StreamMessageId id2, key3, StreamMessageId id3)
Read stream data fromgroupName
byconsumerName
, starting by specified message ids for this and other streams. Waits for the first stream data availability for specifiedtimeout
interval.- Parameters:
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 stream- Returns:
- stream data mapped by key and Stream Message ID
-
readGroupAsync
<,<< groupName, consumerName, long timeout, unit, StreamMessageId id, <,StreamMessageId> nameToId)
Read stream data fromgroupName
byconsumerName
, starting by specified message ids for this and other streams. Waits for the first stream data availability for specifiedtimeout
interval.- Parameters:
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 name- Returns:
- stream data mapped by key and Stream Message ID
-
readGroupAsync
<,<< groupName, consumerName, StreamMessageId id, key2, StreamMessageId id2)
Read stream data fromgroupName
byconsumerName
, starting by specified message ids for this and other streams.- Parameters:
groupName
- - name of groupconsumerName
- - name of consumerid
- - starting message id for this streamkey2
- - name of second streamid2
- - starting message id for second stream- Returns:
- stream data mapped by key and Stream Message ID
-
readGroupAsync
<,<< groupName, consumerName, StreamMessageId id, key2, StreamMessageId id2, key3, StreamMessageId id3)
Read stream data fromgroupName
byconsumerName
, starting by specified message ids for this and other streams.- Parameters:
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 stream- Returns:
- stream data mapped by key and Stream Message ID
-
readGroupAsync
<,<< groupName, consumerName, int count, StreamMessageId id, key2, StreamMessageId id2)
Read stream data fromgroupName
byconsumerName
, starting by specified message ids for this and other streams.- Parameters:
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 stream- Returns:
- stream data mapped by key and Stream Message ID
-
readGroupAsync
<,<< groupName, consumerName, int count, StreamMessageId id, key2, StreamMessageId id2, key3, StreamMessageId id3)
Read stream data fromgroupName
byconsumerName
, starting by specified message ids for this and other streams.- Parameters:
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 stream- Returns:
- stream data mapped by key and Stream Message ID
-
readGroupAsync
<,<< groupName, consumerName, long timeout, unit, StreamMessageId id, key2, StreamMessageId id2)
Read stream data fromgroupName
byconsumerName
, starting by specified message ids for this and other streams. Waits for the first stream data availability for specifiedtimeout
interval.- Parameters:
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 stream- Returns:
- stream data mapped by key and Stream Message ID
-
readGroupAsync
<,<< groupName, consumerName, long timeout, unit, StreamMessageId id, key2, StreamMessageId id2, key3, StreamMessageId id3)
Read stream data fromgroupName
byconsumerName
, starting by specified message ids for this and other streams. Waits for the first stream data availability for specifiedtimeout
interval.- Parameters:
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 stream- Returns:
- stream data mapped by key and Stream Message ID
-
sizeAsync
> sizeAsync()
Returns number of entries in stream- Returns:
- size of stream
-
addAsync
RFuture<StreamMessageId> addAsync(StreamAddArgs<K,V> args)
Appends a new entry/entries and returns generated Stream Message ID- Parameters:
args
- - method arguments object- Returns:
- Stream Message ID
-
addAsync
> addAsync(StreamMessageId id, StreamAddArgs<K,V> args)
Appends a new entry/entries by specified Stream Message ID- Parameters:
id
- - Stream Message IDargs
- - method arguments object
-
addAsync
RFuture<StreamMessageId> addAsync(K key, V value)
Deprecated.
-
addAsync
> addAsync(StreamMessageId id, K key, V value)
Deprecated.
-
addAsync
RFuture<StreamMessageId> addAsync(K key, V value, int trimLen, boolean trimStrict)
Deprecated.
-
addAsync
> addAsync(StreamMessageId id, K key, V value, int trimLen, boolean trimStrict)
Deprecated.
-
addAllAsync
> addAllAsync(StreamMessageId id, <K,V> entries)
Deprecated.
-
addAllAsync
> addAllAsync(StreamMessageId id, <K,V> entries, int trimLen, boolean trimStrict)
Deprecated.
-
readAsync
<,<<K,V>>>> readAsync(StreamMultiReadArgs args)
Read stream data from multiple streams including current.- Parameters:
args
- - method arguments object- Returns:
- stream data mapped by stream name and Stream Message ID
-
readAsync
<<K,V>>> readAsync(StreamReadArgs args)
Read stream data from current stream only.- Parameters:
args
- - method arguments object- Returns:
- stream data mapped by Stream Message ID
-
readAsync
<<K,V>>> readAsync(StreamMessageId... ids)
Deprecated.
-
readAsync
<<K,V>>> readAsync(int count, StreamMessageId... ids)
Deprecated.
-
readAsync
<<K,V>>> readAsync(long timeout, unit, StreamMessageId... ids)
Deprecated.
-
readAsync
<<K,V>>> readAsync(int count, long timeout, unit, StreamMessageId... ids)
Deprecated.
-
readAsync
<,<<K,V>>>> readAsync(StreamMessageId id, name2, StreamMessageId id2)
Deprecated.
-
readAsync
<,<<K,V>>>> readAsync(StreamMessageId id, name2, StreamMessageId id2, name3, StreamMessageId id3)
Deprecated.
-
readAsync
<,<<K,V>>>> readAsync(StreamMessageId id, <,StreamMessageId> nameToId)
Deprecated.
-
readAsync
<,<<K,V>>>> readAsync(int count, StreamMessageId id, name2, StreamMessageId id2)
Deprecated.
-
readAsync
<,<<K,V>>>> readAsync(int count, StreamMessageId id, name2, StreamMessageId id2, name3, StreamMessageId id3)
Deprecated.
-
readAsync
<,<<K,V>>>> readAsync(int count, StreamMessageId id, <,StreamMessageId> nameToId)
Deprecated.
-
readAsync
<,<<K,V>>>> readAsync(long timeout, unit, StreamMessageId id, name2, StreamMessageId id2)
Deprecated.
-
readAsync
<,<<K,V>>>> readAsync(long timeout, unit, StreamMessageId id, name2, StreamMessageId id2, name3, StreamMessageId id3)
Deprecated.
-
readAsync
<,<<K,V>>>> readAsync(long timeout, unit, StreamMessageId id, <,StreamMessageId> nameToId)
Deprecated.
-
readAsync
<,<<K,V>>>> readAsync(int count, long timeout, unit, StreamMessageId id, name2, StreamMessageId id2)
Deprecated.
-
readAsync
<,<<K,V>>>> readAsync(int count, long timeout, unit, StreamMessageId id, name2, StreamMessageId id2, name3, StreamMessageId id3)
Deprecated.
-
readAsync
<,<<K,V>>>> readAsync(int count, long timeout, unit, StreamMessageId id, <,StreamMessageId> nameToId)
Deprecated.
-
rangeAsync
<<K,V>>> rangeAsync(StreamMessageId startId, StreamMessageId endId)
Returns stream data in range by specified start Stream ID (included) and end Stream ID (included).- Parameters:
startId
- - start Stream IDendId
- - end Stream ID- Returns:
- stream data mapped by Stream ID
-
rangeAsync
<<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).- Parameters:
count
- - stream data size limitstartId
- - start Stream IDendId
- - end Stream ID- Returns:
- stream data mapped by Stream ID
-
rangeReversedAsync
<<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).- Parameters:
startId
- - start Stream IDendId
- - end Stream ID- Returns:
- stream data mapped by Stream ID
-
rangeReversedAsync
<<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).- Parameters:
count
- - stream data size limitstartId
- - start Stream IDendId
- - end Stream ID- Returns:
- stream data mapped by Stream ID
-
removeAsync
> removeAsync(StreamMessageId... ids)
Removes messages by id.- Parameters:
ids
- - id of messages to remove- Returns:
- deleted messages amount
-
trimAsync
> trimAsync(int size)
Trims stream using MAXLEN strategy to specified size- Parameters:
size
- - new size of stream- Returns:
- number of deleted messages
-
trimAsync
> trimAsync(TrimStrategy strategy, int threshold)
Trims stream to specified size- Parameters:
strategy
- - trim strategythreshold
- - new size of stream- Returns:
- number of deleted messages
-
trimNonStrictAsync
> trimNonStrictAsync(int size)
Trims stream using MAXLEN strategy to almost exact trimming threshold.- Parameters:
size
- - new size of stream- Returns:
- number of deleted messages
-
trimNonStrictAsync
> trimNonStrictAsync(TrimStrategy strategy, int threshold)
Trims stream using almost exact trimming threshold.- Parameters:
strategy
- - trim strategythreshold
- - trim threshold- Returns:
- number of deleted messages
-
trimNonStrictAsync
> trimNonStrictAsync(TrimStrategy strategy, int threshold, int limit)
Trims stream using almost exact trimming threshold up to limit.- Parameters:
strategy
- - trim strategythreshold
- - trim thresholdlimit
- - trim limit- Returns:
- number of deleted messages
-
getInfoAsync
RFuture<StreamInfo<K,V>> getInfoAsync()
Returns information about this stream.- Returns:
- info object
-
listGroupsAsync
<StreamGroup>> listGroupsAsync()
Returns list of objects with information about groups belonging to this stream.- Returns:
- list of info objects
-
listConsumersAsync
< groupName)
Returns list of objects with information about group customers for specifiedgroupName
.- Parameters:
groupName
- - name of group- Returns:
- list of info objects
-
-