K
- key typeV
- value typepublic interface RStream<K,V> extends RStreamAsync<K,V>, RExpirable
Requires Redis 5.0.0 and higher.
Modifier and Type | Method and Description |
---|---|
long |
ack(String groupName,
StreamMessageId... ids)
Marks pending messages by group name and stream
ids as correctly processed. |
StreamMessageId |
add(K key,
V value)
Appends a new entry and returns generated Stream Message ID
|
StreamMessageId |
add(K key,
V value,
int trimLen,
boolean trimStrict)
Appends a new entry and returns generated Stream Message ID.
|
void |
add(StreamMessageId id,
K key,
V value)
Appends a new entry by specified Stream Message ID
|
void |
add(StreamMessageId id,
K key,
V value,
int trimLen,
boolean trimStrict)
Appends a new entry by specified Stream Message ID.
|
StreamMessageId |
addAll(Map<K,V> entries)
Appends new entries and returns generated Stream Message ID
|
StreamMessageId |
addAll(Map<K,V> entries,
int trimLen,
boolean trimStrict)
Appends new entries and returns generated Stream Message ID.
|
void |
addAll(StreamMessageId id,
Map<K,V> entries)
Appends new entries by specified Stream Message ID
|
void |
addAll(StreamMessageId id,
Map<K,V> entries,
int trimLen,
boolean trimStrict)
Appends new entries by specified Stream Message ID.
|
AutoClaimResult<K,V> |
autoClaim(String groupName,
String consumerName,
long idleTime,
TimeUnit idleTimeUnit,
StreamMessageId startId,
int count)
Transfers ownership of pending messages by id to a new consumer
by name if idle time of messages and startId are greater than defined value.
|
Map<StreamMessageId,Map<K,V>> |
claim(String groupName,
String consumerName,
long idleTime,
TimeUnit idleTimeUnit,
StreamMessageId... ids)
Transfers ownership of pending messages by id to a new consumer
by name if idle time of messages is greater than defined value.
|
void |
createConsumer(String groupName,
String consumerName)
Creates consumer of the group by name.
|
void |
createGroup(String groupName)
Creates consumer group by name.
|
void |
createGroup(String groupName,
StreamMessageId id)
Creates consumer group by name and Stream Message ID.
|
FastAutoClaimResult |
fastAutoClaim(String groupName,
String consumerName,
long idleTime,
TimeUnit idleTimeUnit,
StreamMessageId startId,
int count)
Transfers ownership of pending messages by id to a new consumer
by name if idle time of messages and startId are greater than defined value.
|
List<StreamMessageId> |
fastClaim(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.
|
StreamInfo<K,V> |
getInfo()
Returns information about this stream.
|
PendingResult |
getPendingInfo(String groupName)
Returns common info about pending messages by group name.
|
List<StreamConsumer> |
listConsumers(String groupName)
Returns list of common info about group customers for specified
groupName . |
List<StreamGroup> |
listGroups()
Returns list of common info about groups belonging to this stream.
|
PendingResult |
listPending(String groupName)
Deprecated.
|
List<PendingEntry> |
listPending(String groupName,
StreamMessageId startId,
StreamMessageId endId,
int count)
Returns list of common info about pending messages by group name.
|
List<PendingEntry> |
listPending(String groupName,
StreamMessageId startId,
StreamMessageId endId,
long idleTime,
TimeUnit idleTimeUnit,
int count)
Returns stream data of pending messages by group name.
|
List<PendingEntry> |
listPending(String groupName,
String consumerName,
StreamMessageId startId,
StreamMessageId endId,
int count)
Returns list of common info about pending messages by group and consumer name.
|
List<PendingEntry> |
listPending(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.
|
Map<StreamMessageId,Map<K,V>> |
pendingRange(String groupName,
StreamMessageId startId,
StreamMessageId endId,
int count)
Returns stream data of pending messages by group name.
|
Map<StreamMessageId,Map<K,V>> |
pendingRange(String groupName,
StreamMessageId startId,
StreamMessageId endId,
long idleTime,
TimeUnit idleTimeUnit,
int count)
Returns stream data of pending messages by group name.
|
Map<StreamMessageId,Map<K,V>> |
pendingRange(String groupName,
String consumerName,
StreamMessageId startId,
StreamMessageId endId,
int count)
Returns stream data of pending messages by group and customer name.
|
Map<StreamMessageId,Map<K,V>> |
pendingRange(String groupName,
String consumerName,
StreamMessageId startId,
StreamMessageId endId,
long idleTime,
TimeUnit idleTimeUnit,
int count)
Returns stream data of pending messages by group and customer name.
|
Map<StreamMessageId,Map<K,V>> |
range(int count,
StreamMessageId startId,
StreamMessageId endId)
Returns stream data in range by specified start Stream Message ID (included) and end Stream Message ID (included).
|
Map<StreamMessageId,Map<K,V>> |
range(StreamMessageId startId,
StreamMessageId endId)
Returns stream data in range by specified start Stream Message ID (included) and end Stream Message ID (included).
|
Map<StreamMessageId,Map<K,V>> |
rangeReversed(int count,
StreamMessageId startId,
StreamMessageId endId)
Returns stream data in reverse order in range by specified start Stream Message ID (included) and end Stream Message ID (included).
|
Map<StreamMessageId,Map<K,V>> |
rangeReversed(StreamMessageId startId,
StreamMessageId endId)
Returns stream data in reverse order in range by specified start Stream Message ID (included) and end Stream Message ID (included).
|
Map<StreamMessageId,Map<K,V>> |
read(int count,
long timeout,
TimeUnit unit,
StreamMessageId... ids)
Read stream data by specified collection of Stream Message IDs.
|
Map<String,Map<StreamMessageId,Map<K,V>>> |
read(int count,
long timeout,
TimeUnit unit,
StreamMessageId id,
Map<String,StreamMessageId> nameToId)
Read stream data by specified Stream Message ID mapped by name including this stream.
|
Map<String,Map<StreamMessageId,Map<K,V>>> |
read(int count,
long timeout,
TimeUnit unit,
StreamMessageId id,
String name2,
StreamMessageId id2)
Read stream data by specified stream name including this stream.
|
Map<String,Map<StreamMessageId,Map<K,V>>> |
read(int count,
long timeout,
TimeUnit unit,
StreamMessageId id,
String name2,
StreamMessageId id2,
String name3,
StreamMessageId id3)
Read stream data by specified stream names including this stream.
|
Map<StreamMessageId,Map<K,V>> |
read(int count,
StreamMessageId... ids)
Read stream data by specified collection of Stream Message IDs.
|
Map<String,Map<StreamMessageId,Map<K,V>>> |
read(int count,
StreamMessageId id,
Map<String,StreamMessageId> nameToId)
Read stream data by specified Stream Message ID mapped by name including this stream.
|
Map<String,Map<StreamMessageId,Map<K,V>>> |
read(int count,
StreamMessageId id,
String name2,
StreamMessageId id2)
Read stream data by specified stream name including this stream.
|
Map<String,Map<StreamMessageId,Map<K,V>>> |
read(int count,
StreamMessageId id,
String name2,
StreamMessageId id2,
String name3,
StreamMessageId id3)
Read stream data by specified stream names including this stream.
|
Map<StreamMessageId,Map<K,V>> |
read(long timeout,
TimeUnit unit,
StreamMessageId... ids)
Read stream data by specified collection of Stream Message IDs.
|
Map<String,Map<StreamMessageId,Map<K,V>>> |
read(long timeout,
TimeUnit unit,
StreamMessageId id,
Map<String,StreamMessageId> nameToId)
Read stream data by specified Stream Message ID mapped by name including this stream.
|
Map<String,Map<StreamMessageId,Map<K,V>>> |
read(long timeout,
TimeUnit unit,
StreamMessageId id,
String name2,
StreamMessageId id2)
Read stream data by specified stream name including this stream.
|
Map<String,Map<StreamMessageId,Map<K,V>>> |
read(long timeout,
TimeUnit unit,
StreamMessageId id,
String name2,
StreamMessageId id2,
String name3,
StreamMessageId id3)
Read stream data by specified stream names including this stream.
|
Map<StreamMessageId,Map<K,V>> |
read(StreamMessageId... ids)
Read stream data by specified collection of Stream Message IDs.
|
Map<String,Map<StreamMessageId,Map<K,V>>> |
read(StreamMessageId id,
Map<String,StreamMessageId> nameToId)
Read stream data by specified Stream Message ID mapped by name including this stream.
|
Map<String,Map<StreamMessageId,Map<K,V>>> |
read(StreamMessageId id,
String name2,
StreamMessageId id2)
Read stream data by specified stream name including this stream.
|
Map<String,Map<StreamMessageId,Map<K,V>>> |
read(StreamMessageId id,
String name2,
StreamMessageId id2,
String name3,
StreamMessageId id3)
Read stream data by specified stream names including this stream.
|
Map<StreamMessageId,Map<K,V>> |
readGroup(String groupName,
String consumerName,
int count,
long timeout,
TimeUnit unit,
StreamMessageId... ids)
Read stream data from
groupName by consumerName and specified collection of Stream Message IDs. |
Map<String,Map<StreamMessageId,Map<K,V>>> |
readGroup(String groupName,
String consumerName,
int count,
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. |
Map<String,Map<StreamMessageId,Map<K,V>>> |
readGroup(String groupName,
String consumerName,
int count,
long timeout,
TimeUnit unit,
StreamMessageId id,
String key2,
StreamMessageId id2)
Read stream data from
groupName by consumerName , starting by specified message ids for this and other streams. |
Map<String,Map<StreamMessageId,Map<K,V>>> |
readGroup(String groupName,
String consumerName,
int count,
long timeout,
TimeUnit unit,
StreamMessageId id,
String key2,
StreamMessageId id2,
String key3,
StreamMessageId id3)
Read stream data from
groupName by consumerName , starting by specified message ids for this and other streams. |
Map<StreamMessageId,Map<K,V>> |
readGroup(String groupName,
String consumerName,
int count,
StreamMessageId... ids)
Read stream data from
groupName by consumerName and specified collection of Stream Message IDs. |
Map<String,Map<StreamMessageId,Map<K,V>>> |
readGroup(String groupName,
String consumerName,
int count,
StreamMessageId id,
Map<String,StreamMessageId> nameToId)
Read stream data from
groupName by consumerName , starting by specified message ids for this and other streams. |
Map<String,Map<StreamMessageId,Map<K,V>>> |
readGroup(String groupName,
String consumerName,
int count,
StreamMessageId id,
String key2,
StreamMessageId id2)
Read stream data from
groupName by consumerName , starting by specified message ids for this and other streams. |
Map<String,Map<StreamMessageId,Map<K,V>>> |
readGroup(String groupName,
String consumerName,
int count,
StreamMessageId id,
String key2,
StreamMessageId id2,
String key3,
StreamMessageId id3)
Read stream data from
groupName by consumerName , starting by specified message ids for this and other streams. |
Map<StreamMessageId,Map<K,V>> |
readGroup(String groupName,
String consumerName,
long timeout,
TimeUnit unit,
StreamMessageId... ids)
Read stream data from
groupName by consumerName and specified collection of Stream Message IDs. |
Map<String,Map<StreamMessageId,Map<K,V>>> |
readGroup(String groupName,
String consumerName,
long timeout,
TimeUnit unit,
StreamMessageId id,
Map<String,StreamMessageId> nameToId)
Read stream data from
groupName by consumerName , starting by specified message ids for this and other streams. |
Map<String,Map<StreamMessageId,Map<K,V>>> |
readGroup(String groupName,
String consumerName,
long timeout,
TimeUnit unit,
StreamMessageId id,
String key2,
StreamMessageId id2)
Read stream data from
groupName by consumerName , starting by specified message ids for this and other streams. |
Map<String,Map<StreamMessageId,Map<K,V>>> |
readGroup(String groupName,
String consumerName,
long timeout,
TimeUnit unit,
StreamMessageId id,
String key2,
StreamMessageId id2,
String key3,
StreamMessageId id3)
Read stream data from
groupName by consumerName , starting by specified message ids for this and other streams. |
Map<StreamMessageId,Map<K,V>> |
readGroup(String groupName,
String consumerName,
StreamMessageId... ids)
Read stream data from
groupName by consumerName and specified collection of Stream Message IDs. |
Map<String,Map<StreamMessageId,Map<K,V>>> |
readGroup(String groupName,
String consumerName,
StreamMessageId id,
Map<String,StreamMessageId> nameToId)
Read stream data from
groupName by consumerName , starting by specified message ids for this and other streams. |
Map<String,Map<StreamMessageId,Map<K,V>>> |
readGroup(String groupName,
String consumerName,
StreamMessageId id,
String key2,
StreamMessageId id2)
Read stream data from
groupName by consumerName , starting by specified message ids for this and other streams. |
Map<String,Map<StreamMessageId,Map<K,V>>> |
readGroup(String groupName,
String consumerName,
StreamMessageId id,
String key2,
StreamMessageId id2,
String key3,
StreamMessageId id3)
Read stream data from
groupName by consumerName , starting by specified message ids for this and other streams. |
long |
remove(StreamMessageId... ids)
Removes messages by id.
|
long |
removeConsumer(String groupName,
String consumerName)
Removes consumer of the group by name.
|
void |
removeGroup(String groupName)
Removes group by name.
|
long |
size()
Returns number of entries in stream
|
long |
trim(int size)
Trims stream to specified size
|
long |
trimNonStrict(int size)
Trims stream to few tens of entries more than specified length to trim.
|
void |
updateGroupMessageId(String groupName,
StreamMessageId id)
Updates next message id delivered to consumers.
|
ackAsync, addAllAsync, addAllAsync, addAllAsync, addAllAsync, addAsync, addAsync, addAsync, addAsync, autoClaimAsync, claimAsync, createConsumerAsync, createGroupAsync, createGroupAsync, fastAutoClaimAsync, fastClaimAsync, getInfoAsync, getPendingInfoAsync, listConsumersAsync, listGroupsAsync, listPendingAsync, listPendingAsync, listPendingAsync, listPendingAsync, listPendingAsync, pendingRangeAsync, pendingRangeAsync, pendingRangeAsync, pendingRangeAsync, rangeAsync, rangeAsync, rangeReversedAsync, rangeReversedAsync, readAsync, readAsync, readAsync, readAsync, readAsync, readAsync, readAsync, readAsync, readAsync, readAsync, readAsync, readAsync, readAsync, readAsync, readAsync, readAsync, readGroupAsync, readGroupAsync, readGroupAsync, readGroupAsync, readGroupAsync, readGroupAsync, readGroupAsync, readGroupAsync, readGroupAsync, readGroupAsync, readGroupAsync, readGroupAsync, readGroupAsync, readGroupAsync, readGroupAsync, removeAsync, removeConsumerAsync, removeGroupAsync, sizeAsync, trimAsync, trimNonStrictAsync, updateGroupMessageIdAsync
clearExpire, expire, expireAt, expireAt, remainTimeToLive
addListener, copy, delete, dump, getCodec, getIdleTime, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlink
clearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsync
addListenerAsync, copyAsync, deleteAsync, dumpAsync, getIdleTimeAsync, isExistsAsync, migrateAsync, moveAsync, removeListenerAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, touchAsync, unlinkAsync
void createGroup(String groupName)
groupName
- - name of groupvoid createGroup(String groupName, StreamMessageId id)
id
will be available for consumers of this group.
StreamMessageId.NEWEST
is used for messages arrived since the moment of group creation
StreamMessageId.ALL
is used for all messages added before and after the moment of group creation
groupName
- - name of groupid
- - Stream Message IDvoid removeGroup(String groupName)
groupName
- - name of groupvoid createConsumer(String groupName, String consumerName)
Requires Redis 6.2.0 and higher.
groupName
- - name of groupconsumerName
- - name of consumerlong removeConsumer(String groupName, String consumerName)
groupName
- - name of groupconsumerName
- - name of consumervoid updateGroupMessageId(String groupName, StreamMessageId id)
groupName
- - name of groupid
- - Stream Message IDlong ack(String groupName, StreamMessageId... ids)
ids
as correctly processed.groupName
- - name of groupids
- - Stream Message IDsPendingResult getPendingInfo(String groupName)
groupName
- - name of group@Deprecated PendingResult listPending(String groupName)
List<PendingEntry> listPending(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 messagesRStreamAsync.pendingRangeAsync(java.lang.String, org.redisson.api.StreamMessageId, org.redisson.api.StreamMessageId, int)
List<PendingEntry> listPending(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 messagesRStreamAsync.pendingRangeAsync(java.lang.String, org.redisson.api.StreamMessageId, org.redisson.api.StreamMessageId, int)
List<PendingEntry> listPending(String groupName, StreamMessageId startId, StreamMessageId endId, long idleTime, TimeUnit idleTimeUnit, int count)
StreamMessageId.MAX
is used as max Stream Message ID
StreamMessageId.MIN
is used as min Stream Message ID
Requires Redis 6.2.0 and higher.
groupName
- - name of groupstartId
- - start Stream Message IDendId
- - end Stream Message IDidleTime
- - minimum idle time of messagesidleTimeUnit
- - idle time unitcount
- - amount of messagesRStreamAsync.listPendingAsync(java.lang.String)
List<PendingEntry> listPending(String groupName, String consumerName, StreamMessageId startId, StreamMessageId endId, long idleTime, TimeUnit idleTimeUnit, int count)
StreamMessageId.MAX
is used as max Stream Message ID
StreamMessageId.MIN
is used as min Stream Message ID
Requires Redis 6.2.0 and higher.
consumerName
- - name of consumergroupName
- - name of groupstartId
- - start Stream Message IDendId
- - end Stream Message IDidleTime
- - minimum idle time of messagesidleTimeUnit
- - idle time unitcount
- - amount of messagesRStreamAsync.listPendingAsync(java.lang.String)
Map<StreamMessageId,Map<K,V>> pendingRange(String groupName, StreamMessageId startId, StreamMessageId endId, int count)
StreamMessageId.MAX
is used as max Stream Message ID
StreamMessageId.MIN
is used as min Stream Message ID
groupName
- - name of groupstartId
- - start Stream Message IDendId
- - end Stream Message IDcount
- - amount of messageslistPending(java.lang.String)
Map<StreamMessageId,Map<K,V>> pendingRange(String groupName, String consumerName, StreamMessageId startId, StreamMessageId endId, int count)
StreamMessageId.MAX
is used as max Stream Message ID
StreamMessageId.MIN
is used as min Stream Message ID
consumerName
- - name of consumergroupName
- - name of groupstartId
- - start Stream Message IDendId
- - end Stream Message IDcount
- - amount of messageslistPending(java.lang.String)
Map<StreamMessageId,Map<K,V>> pendingRange(String groupName, StreamMessageId startId, StreamMessageId endId, long idleTime, TimeUnit idleTimeUnit, int count)
StreamMessageId.MAX
is used as max Stream Message ID
StreamMessageId.MIN
is used as min Stream Message ID
Requires Redis 6.2.0 and higher.
groupName
- - name of groupstartId
- - start Stream Message IDendId
- - end Stream Message IDidleTime
- - minimum idle time of messagesidleTimeUnit
- - idle time unitcount
- - amount of messagesRStreamAsync.listPendingAsync(java.lang.String)
Map<StreamMessageId,Map<K,V>> pendingRange(String groupName, String consumerName, StreamMessageId startId, StreamMessageId endId, long idleTime, TimeUnit idleTimeUnit, int count)
StreamMessageId.MAX
is used as max Stream Message ID
StreamMessageId.MIN
is used as min Stream Message ID
Requires Redis 6.2.0 and higher.
consumerName
- - name of consumergroupName
- - name of groupstartId
- - start Stream Message IDendId
- - end Stream Message IDidleTime
- - minimum idle time of messagesidleTimeUnit
- - idle time unitcount
- - amount of messagesRStreamAsync.listPendingAsync(java.lang.String)
AutoClaimResult<K,V> autoClaim(String groupName, String consumerName, long idleTime, TimeUnit idleTimeUnit, StreamMessageId startId, int count)
groupName
- - name of groupconsumerName
- - name of consumeridleTime
- - minimum idle time of messagesidleTimeUnit
- - idle time unitstartId
- - start Stream Message IDMap<StreamMessageId,Map<K,V>> claim(String groupName, String consumerName, long idleTime, TimeUnit idleTimeUnit, StreamMessageId... ids)
groupName
- - name of groupconsumerName
- - name of consumeridleTime
- - minimum idle time of messagesidleTimeUnit
- - idle time unitids
- - Stream Message IDsList<StreamMessageId> fastClaim(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 IDsFastAutoClaimResult fastAutoClaim(String groupName, String consumerName, long idleTime, TimeUnit idleTimeUnit, StreamMessageId startId, int count)
groupName
- - name of groupconsumerName
- - name of consumeridleTime
- - minimum idle time of messagesidleTimeUnit
- - idle time unitstartId
- - start Stream Message IDMap<StreamMessageId,Map<K,V>> readGroup(String groupName, String consumerName, StreamMessageId... ids)
groupName
by consumerName
and specified collection of Stream Message IDs.groupName
- - name of groupconsumerName
- - name of consumerids
- - collection of Stream Message IDsMap<StreamMessageId,Map<K,V>> readGroup(String groupName, String consumerName, int count, StreamMessageId... ids)
groupName
by consumerName
and specified collection of Stream Message IDs.groupName
- - name of groupconsumerName
- - name of consumercount
- - stream data size limitids
- - collection of Stream Message IDsMap<StreamMessageId,Map<K,V>> readGroup(String groupName, String consumerName, long timeout, TimeUnit unit, StreamMessageId... ids)
groupName
by consumerName
and specified collection of Stream Message IDs.
Waits 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 Message IDsMap<StreamMessageId,Map<K,V>> readGroup(String groupName, String consumerName, int count, long timeout, TimeUnit unit, StreamMessageId... ids)
groupName
by consumerName
and specified collection of Stream Message IDs.
Waits 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 Message IDsMap<String,Map<StreamMessageId,Map<K,V>>> readGroup(String groupName, String consumerName, StreamMessageId id, Map<String,StreamMessageId> nameToId)
groupName
by consumerName
, starting by specified message ids for this and other streams.groupName
- - name of groupconsumerName
- - name of consumerid
- - starting message id for this streamnameToId
- - Stream Message ID mapped by stream nameMap<String,Map<StreamMessageId,Map<K,V>>> readGroup(String groupName, String consumerName, int count, StreamMessageId id, Map<String,StreamMessageId> nameToId)
groupName
by consumerName
, starting by specified message ids for this and other streams.groupName
- - name of groupconsumerName
- - name of consumercount
- - stream data size limitid
- - starting message id for this streamnameToId
- - Stream Message ID mapped by stream nameMap<String,Map<StreamMessageId,Map<K,V>>> readGroup(String groupName, String consumerName, int count, 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 consumercount
- - stream data size limittimeout
- - time interval to wait for stream data availabilityunit
- - time interval unitid
- - starting message id for this streamnameToId
- - Stream Message ID mapped by stream nameMap<String,Map<StreamMessageId,Map<K,V>>> readGroup(String groupName, String consumerName, long timeout, TimeUnit unit, StreamMessageId id, Map<String,StreamMessageId> nameToId)
groupName
by consumerName
, starting by specified message ids for this and other streams.
Waits for the first stream data availability for specified timeout
interval.groupName
- - name of groupconsumerName
- - name of consumertimeout
- - time interval to wait for stream data availabilityunit
- - time interval unitid
- - starting message id for this streamnameToId
- - Stream Message ID mapped by stream nameMap<String,Map<StreamMessageId,Map<K,V>>> readGroup(String groupName, String consumerName, StreamMessageId id, String key2, StreamMessageId id2)
groupName
by consumerName
, starting by specified message ids for this and other streams.groupName
- - name of groupconsumerName
- - name of consumerid
- - starting message id for this streamkey2
- - name of second streamid2
- - starting message id for second streamMap<String,Map<StreamMessageId,Map<K,V>>> readGroup(String groupName, String consumerName, StreamMessageId id, String key2, StreamMessageId id2, String key3, StreamMessageId id3)
groupName
by consumerName
, starting by specified message ids for this and other streams.groupName
- - name of groupconsumerName
- - name of consumerid
- - starting message id for this streamkey2
- - name of second streamid2
- - starting message id for second streamkey3
- - name of third streamid3
- - starting message id for third streamMap<String,Map<StreamMessageId,Map<K,V>>> readGroup(String groupName, String consumerName, int count, StreamMessageId id, String key2, StreamMessageId id2)
groupName
by consumerName
, starting by specified message ids for this and other streams.groupName
- - name of groupconsumerName
- - name of consumercount
- - stream data size limitid
- - starting message id for this streamkey2
- - name of second streamid2
- - starting message id for second streamMap<String,Map<StreamMessageId,Map<K,V>>> readGroup(String groupName, String consumerName, int count, StreamMessageId id, String key2, StreamMessageId id2, String key3, StreamMessageId id3)
groupName
by consumerName
, starting by specified message ids for this and other streams.groupName
- - name of groupconsumerName
- - name of consumercount
- - stream data size limitid
- - starting message id for this streamkey2
- - name of second streamid2
- - starting message id for second streamkey3
- - name of third streamid3
- - starting message id for third streamMap<String,Map<StreamMessageId,Map<K,V>>> readGroup(String groupName, String consumerName, long timeout, TimeUnit unit, StreamMessageId id, String key2, StreamMessageId id2)
groupName
by consumerName
, starting by specified message ids for this and other streams.
Waits for the first stream data availability for specified timeout
interval.groupName
- - name of groupconsumerName
- - name of consumertimeout
- - time interval to wait for stream data availabilityunit
- - time interval unitid
- - starting message id for this streamkey2
- - name of second streamid2
- - starting message id for second streamMap<String,Map<StreamMessageId,Map<K,V>>> readGroup(String groupName, String consumerName, long timeout, TimeUnit unit, StreamMessageId id, String key2, StreamMessageId id2, String key3, StreamMessageId id3)
groupName
by consumerName
, starting by specified message ids for this and other streams.
Waits for the first stream data availability for specified timeout
interval.groupName
- - name of groupconsumerName
- - name of consumertimeout
- - time interval to wait for stream data availabilityunit
- - time interval unitid
- - starting message id for this streamkey2
- - name of second streamid2
- - starting message id for second streamkey3
- - name of third streamid3
- - starting message id for third streamMap<String,Map<StreamMessageId,Map<K,V>>> readGroup(String groupName, String consumerName, int count, long timeout, TimeUnit unit, StreamMessageId id, String key2, StreamMessageId id2)
groupName
by consumerName
, starting by specified message ids for this and other streams.
Waits for the first stream data availability for specified timeout
interval.groupName
- - name of groupconsumerName
- - name of consumercount
- - stream data size limittimeout
- - time interval to wait for stream data availabilityunit
- - time interval unitid
- - starting message id for this streamkey2
- - name of second streamid2
- - starting message id for second streamMap<String,Map<StreamMessageId,Map<K,V>>> readGroup(String groupName, String consumerName, int count, long timeout, TimeUnit unit, StreamMessageId id, String key2, StreamMessageId id2, String key3, StreamMessageId id3)
groupName
by consumerName
, starting by specified message ids for this and other streams.
Waits for the first stream data availability for specified timeout
interval.groupName
- - name of groupconsumerName
- - name of consumercount
- - stream data size limittimeout
- - time interval to wait for stream data availabilityunit
- - time interval unitid
- - starting message id for this streamkey2
- - name of second streamid2
- - starting message id for second streamkey3
- - name of third streamid3
- - starting message id for third streamlong size()
StreamMessageId add(K key, V value)
key
- - key of entryvalue
- - value of entryvoid add(StreamMessageId id, K key, V value)
id
- - Stream Message IDkey
- - key of entryvalue
- - value of entryStreamMessageId add(K key, V value, int trimLen, boolean trimStrict)
trimLen
size.
If trimStrict
is false
then trims to few tens of entries more than specified length to trim.key
- - key of entryvalue
- - value of entrytrimLen
- - length to trimtrimStrict
- - if false
then trims to few tens of entries more than specified length to trimvoid add(StreamMessageId id, K key, V value, int trimLen, boolean trimStrict)
trimLen
size.
If trimStrict
is false
then trims to few tens of entries more than specified length to trim.id
- - Stream Message IDkey
- - key of entryvalue
- - value of entrytrimLen
- - length to trimtrimStrict
- - if false
then trims to few tens of entries more than specified length to trimStreamMessageId addAll(Map<K,V> entries)
entries
- - entries to addvoid addAll(StreamMessageId id, Map<K,V> entries)
id
- - Stream Message IDentries
- - entries to addStreamMessageId addAll(Map<K,V> entries, int trimLen, boolean trimStrict)
trimLen
size.
If trimStrict
is false
then trims to few tens of entries more than specified length to trim.entries
- - entries to addtrimLen
- - length to trimtrimStrict
- - if false
then trims to few tens of entries more than specified length to trimvoid addAll(StreamMessageId id, Map<K,V> entries, int trimLen, boolean trimStrict)
trimLen
size.
If trimStrict
is false
then trims to few tens of entries more than specified length to trim.id
- - Stream Message IDentries
- - entries to addtrimLen
- - length to trimtrimStrict
- - if false
then trims to few tens of entries more than specified length to trimMap<StreamMessageId,Map<K,V>> read(StreamMessageId... ids)
ids
- - collection of Stream Message IDsMap<StreamMessageId,Map<K,V>> read(int count, StreamMessageId... ids)
count
- - stream data size limitids
- - collection of Stream Message IDsMap<StreamMessageId,Map<K,V>> read(long timeout, TimeUnit unit, StreamMessageId... ids)
timeout
interval.timeout
- - time interval to wait for stream data availabilityunit
- - time interval unitids
- - collection of Stream Message IDsMap<StreamMessageId,Map<K,V>> read(int count, long timeout, TimeUnit unit, StreamMessageId... ids)
timeout
interval.count
- - stream data size limittimeout
- - time interval to wait for stream data availabilityunit
- - time interval unitids
- - collection of Stream Message IDsMap<String,Map<StreamMessageId,Map<K,V>>> read(StreamMessageId id, String name2, StreamMessageId id2)
id
- - id of this streamname2
- - name of second streamid2
- - id of second streamMap<String,Map<StreamMessageId,Map<K,V>>> read(StreamMessageId id, String name2, StreamMessageId id2, String name3, StreamMessageId id3)
id
- - id of this streamname2
- - name of second streamid2
- - id of second streamname3
- - name of third streamid3
- - id of third streamMap<String,Map<StreamMessageId,Map<K,V>>> read(StreamMessageId id, Map<String,StreamMessageId> nameToId)
id
- - id of this streamnameToId
- - Stream Message ID mapped by nameMap<String,Map<StreamMessageId,Map<K,V>>> read(int count, StreamMessageId id, String name2, StreamMessageId id2)
count
- - stream data size limitid
- - id of this streamname2
- - name of second streamid2
- - id of second streamMap<String,Map<StreamMessageId,Map<K,V>>> read(int count, StreamMessageId id, String name2, StreamMessageId id2, String name3, StreamMessageId id3)
count
- - stream data size limitid
- - id of this streamname2
- - name of second streamid2
- - id of second streamname3
- - name of third streamid3
- - id of third streamMap<String,Map<StreamMessageId,Map<K,V>>> read(int count, StreamMessageId id, Map<String,StreamMessageId> nameToId)
count
- - stream data size limitid
- - id of this streamnameToId
- - Stream Message ID mapped by nameMap<String,Map<StreamMessageId,Map<K,V>>> read(long timeout, TimeUnit unit, StreamMessageId id, String name2, StreamMessageId id2)
timeout
interval.timeout
- - time interval to wait for stream data availabilityunit
- - time interval unitid
- - id of this streamname2
- - name of second streamid2
- - id of second streamMap<String,Map<StreamMessageId,Map<K,V>>> read(long timeout, TimeUnit unit, StreamMessageId id, String name2, StreamMessageId id2, String name3, StreamMessageId id3)
timeout
interval.timeout
- - time interval to wait for stream data availabilityunit
- - time interval unitid
- - id of this streamname2
- - name of second streamid2
- - id of second streamname3
- - name of third streamid3
- - id of third streamMap<String,Map<StreamMessageId,Map<K,V>>> read(long timeout, TimeUnit unit, StreamMessageId id, Map<String,StreamMessageId> nameToId)
timeout
interval.timeout
- - time interval to wait for stream data availabilityunit
- - time interval unitid
- - id of this streamnameToId
- - Stream Message ID mapped by nameMap<String,Map<StreamMessageId,Map<K,V>>> read(int count, long timeout, TimeUnit unit, StreamMessageId id, String name2, StreamMessageId id2)
timeout
interval.count
- - stream data size limittimeout
- - time interval to wait for stream data availabilityunit
- - time interval unitid
- - id of this streamname2
- - name of second streamid2
- - id of second streamMap<String,Map<StreamMessageId,Map<K,V>>> read(int count, long timeout, TimeUnit unit, StreamMessageId id, String name2, StreamMessageId id2, String name3, StreamMessageId id3)
timeout
interval.count
- - stream data size limittimeout
- - time interval to wait for stream data availabilityunit
- - time interval unitid
- - id of this streamname2
- - name of second streamid2
- - id of second streamname3
- - name of third streamid3
- - id of third streamMap<String,Map<StreamMessageId,Map<K,V>>> read(int count, long timeout, TimeUnit unit, StreamMessageId id, Map<String,StreamMessageId> nameToId)
timeout
interval.count
- - stream data size limittimeout
- - time interval to wait for stream data availabilityunit
- - time interval unitid
- - id of this streamnameToId
- - Stream Message ID mapped by nameMap<StreamMessageId,Map<K,V>> range(StreamMessageId startId, StreamMessageId endId)
startId
- - start Stream Message IDendId
- - end Stream Message IDMap<StreamMessageId,Map<K,V>> range(int count, StreamMessageId startId, StreamMessageId endId)
count
- - stream data size limitstartId
- - start Stream Message IDendId
- - end Stream Message IDMap<StreamMessageId,Map<K,V>> rangeReversed(StreamMessageId startId, StreamMessageId endId)
startId
- - start Stream Message IDendId
- - end Stream Message IDMap<StreamMessageId,Map<K,V>> rangeReversed(int count, StreamMessageId startId, StreamMessageId endId)
count
- - stream data size limitstartId
- - start Stream Message IDendId
- - end Stream Message IDlong remove(StreamMessageId... ids)
ids
- - id of messages to removelong trim(int size)
size
- - new size of streamlong trimNonStrict(int size)
size
- - new size of streamStreamInfo<K,V> getInfo()
List<StreamGroup> listGroups()
List<StreamConsumer> listConsumers(String groupName)
groupName
.groupName
- - name of groupCopyright © 2014–2021 Redisson. All rights reserved.