K
- key typeV
- value typepublic class RedissonStream<K,V> extends RedissonObject implements RStream<K,V>
codec, commandExecutor, name
Constructor and Description |
---|
RedissonStream(Codec codec,
CommandAsyncExecutor connectionManager,
String name) |
RedissonStream(CommandAsyncExecutor connectionManager,
String name) |
Modifier and Type | Method and Description |
---|---|
long |
ack(String groupName,
StreamMessageId... id)
Marks pending messages by group name and stream
ids as correctly processed. |
RFuture<Long> |
ackAsync(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.
|
RFuture<StreamMessageId> |
addAllAsync(Map<K,V> entries)
Appends new entries and returns generated Stream ID
|
RFuture<StreamMessageId> |
addAllAsync(Map<K,V> entries,
int trimLen,
boolean trimStrict)
Appends new entries and returns generated Stream ID.
|
RFuture<Void> |
addAllAsync(StreamMessageId id,
Map<K,V> entries)
Appends new entries by specified Stream ID
|
RFuture<Void> |
addAllAsync(StreamMessageId id,
Map<K,V> entries,
int trimLen,
boolean trimStrict)
Appends new entries by specified Stream ID.
|
RFuture<StreamMessageId> |
addAsync(K key,
V value)
Appends a new entry and returns generated Stream ID
|
RFuture<StreamMessageId> |
addAsync(K key,
V value,
int trimLen,
boolean trimStrict)
Appends a new entry and returns generated Stream ID.
|
RFuture<Void> |
addAsync(StreamMessageId id,
K key,
V value)
Appends a new entry by specified Stream ID
|
RFuture<Void> |
addAsync(StreamMessageId id,
K key,
V value,
int trimLen,
boolean trimStrict)
Appends a new entry by specified Stream ID.
|
protected void |
checkKey(Object key) |
protected void |
checkValue(Object 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.
|
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.
|
boolean |
clearExpire()
Clear an expire timeout or expire date for object.
|
RFuture<Boolean> |
clearExpireAsync()
Clear an expire timeout or expire date for object in async mode.
|
protected RFuture<Boolean> |
clearExpireAsync(String... keys) |
void |
createGroup(String groupName)
Creates consumer group by name.
|
void |
createGroup(String groupName,
StreamMessageId id)
Creates consumer group by name and Stream Message ID.
|
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.
|
boolean |
expire(long timeToLive,
TimeUnit timeUnit)
Set a timeout for object.
|
RFuture<Boolean> |
expireAsync(long timeToLive,
TimeUnit timeUnit)
Set a timeout for object in async mode.
|
protected RFuture<Boolean> |
expireAsync(long timeToLive,
TimeUnit timeUnit,
String... keys) |
boolean |
expireAt(Date timestamp)
Set an expire date for object.
|
boolean |
expireAt(long timestamp)
Set an expire date for object.
|
RFuture<Boolean> |
expireAtAsync(Date timestamp)
Set an expire date for object in async mode.
|
RFuture<Boolean> |
expireAtAsync(long timestamp)
Set an expire date for object in async mode.
|
protected RFuture<Boolean> |
expireAtAsync(long timestamp,
String... keys) |
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.
|
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.
|
StreamInfo<K,V> |
getInfo()
Returns information about this stream.
|
RFuture<StreamInfo<K,V>> |
getInfoAsync()
Returns information about this stream.
|
PendingResult |
getPendingInfo(String groupName)
Returns common info about pending messages by group name.
|
RFuture<PendingResult> |
getPendingInfoAsync(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 . |
RFuture<List<StreamConsumer>> |
listConsumersAsync(String groupName)
Returns list of objects with information about group customers for specified
groupName . |
List<StreamGroup> |
listGroups()
Returns list of common info about groups belonging to this stream.
|
RFuture<List<StreamGroup>> |
listGroupsAsync()
Returns list of objects with information about groups belonging to this stream.
|
PendingResult |
listPending(String groupName) |
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,
String consumerName,
StreamMessageId startId,
StreamMessageId endId,
int count)
Returns list of common info about pending messages by group and consumer name.
|
RFuture<PendingResult> |
listPendingAsync(String groupName) |
RFuture<List<PendingEntry>> |
listPendingAsync(String groupName,
StreamMessageId startId,
StreamMessageId endId,
int count)
Returns list of common info about pending messages by group name.
|
RFuture<List<PendingEntry>> |
listPendingAsync(String groupName,
String consumerName,
StreamMessageId startId,
StreamMessageId endId,
int count)
Returns list of common info about pending messages by group and consumer name.
|
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,
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,
StreamMessageId startId,
StreamMessageId endId,
int count)
Returns stream data of pending messages by group name.
|
RFuture<Map<StreamMessageId,Map<K,V>>> |
pendingRangeAsync(String groupName,
String consumerName,
StreamMessageId startId,
StreamMessageId endId,
int count)
Returns stream data of pending messages by group and customer name.
|
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).
|
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).
|
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).
|
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).
|
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> keyToId)
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 key2,
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 key2,
StreamMessageId id2,
String key3,
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> keyToId)
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 key2,
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 key2,
StreamMessageId id2,
String key3,
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> keyToId)
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 key2,
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 key2,
StreamMessageId id2,
String key3,
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> keyToId)
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 key2,
StreamMessageId id2)
Read stream data by specified stream name including this stream.
|
Map<String,Map<StreamMessageId,Map<K,V>>> |
read(StreamMessageId id,
String key2,
StreamMessageId id2,
String key3,
StreamMessageId id3)
Read stream data by specified stream names including this stream.
|
RFuture<Map<StreamMessageId,Map<K,V>>> |
readAsync(int count,
long timeout,
TimeUnit unit,
StreamMessageId... ids)
Read stream data by specified collection of Stream IDs.
|
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readAsync(int count,
long timeout,
TimeUnit unit,
StreamMessageId id,
Map<String,StreamMessageId> keyToId)
Read stream data by specified stream id mapped by name including this stream.
|
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readAsync(int count,
long timeout,
TimeUnit unit,
StreamMessageId id,
String key2,
StreamMessageId id2)
Read stream data by specified stream name including this stream.
|
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readAsync(int count,
long timeout,
TimeUnit unit,
StreamMessageId id,
String key2,
StreamMessageId id2,
String key3,
StreamMessageId id3)
Read stream data by specified stream names including this stream.
|
RFuture<Map<StreamMessageId,Map<K,V>>> |
readAsync(int count,
StreamMessageId... ids)
Read stream data by specified collection of Stream IDs.
|
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readAsync(int count,
StreamMessageId id,
Map<String,StreamMessageId> keyToId)
Read stream data by specified stream id mapped by name including this stream.
|
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readAsync(int count,
StreamMessageId id,
String key2,
StreamMessageId id2)
Read stream data by specified stream name including this stream.
|
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readAsync(int count,
StreamMessageId id,
String key2,
StreamMessageId id2,
String key3,
StreamMessageId id3)
Read stream data by specified stream names including this stream.
|
RFuture<Map<StreamMessageId,Map<K,V>>> |
readAsync(long timeout,
TimeUnit unit,
StreamMessageId... ids)
Read stream data by specified collection of Stream IDs.
|
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readAsync(long timeout,
TimeUnit unit,
StreamMessageId id,
Map<String,StreamMessageId> keyToId)
Read stream data by specified stream id mapped by name including this stream.
|
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readAsync(long timeout,
TimeUnit unit,
StreamMessageId id,
String key2,
StreamMessageId id2)
Read stream data by specified stream name including this stream.
|
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readAsync(long timeout,
TimeUnit unit,
StreamMessageId id,
String key2,
StreamMessageId id2,
String key3,
StreamMessageId id3)
Read stream data by specified stream names including this stream.
|
RFuture<Map<StreamMessageId,Map<K,V>>> |
readAsync(StreamMessageId... ids)
Read stream data by specified collection of Stream IDs.
|
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readAsync(StreamMessageId id,
Map<String,StreamMessageId> keyToId)
Read stream data by specified stream id mapped by name including this stream.
|
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readAsync(StreamMessageId id,
String key2,
StreamMessageId id2)
Read stream data by specified stream name including this stream.
|
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readAsync(StreamMessageId id,
String key2,
StreamMessageId id2,
String key3,
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> keyToId)
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> keyToId)
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> keyToId)
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> keyToId)
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. |
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,
Map<String,StreamMessageId> keyToId) |
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> keyToId)
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> keyToId)
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> keyToId)
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. |
long |
remainTimeToLive()
Remaining time to live of Redisson object that has a timeout
|
RFuture<Long> |
remainTimeToLiveAsync()
Remaining time to live of Redisson object that has a timeout
|
long |
remove(StreamMessageId... ids)
Removes messages by id.
|
RFuture<Long> |
removeAsync(StreamMessageId... ids)
Removes messages by id.
|
long |
removeConsumer(String groupName,
String consumerName)
Removes consumer of the group by name.
|
RFuture<Long> |
removeConsumerAsync(String groupName,
String consumerName)
Removes consumer of the group by name.
|
void |
removeGroup(String groupName)
Removes group by name.
|
RFuture<Void> |
removeGroupAsync(String groupName)
Removes group by name.
|
long |
size()
Returns number of entries in stream
|
RFuture<Long> |
sizeAsync()
Returns number of entries in stream
|
long |
trim(int count)
Trims stream to specified size
|
RFuture<Long> |
trimAsync(int count)
Trims stream to specified size
|
long |
trimNonStrict(int count)
Trims stream to few tens of entries more than specified length to trim.
|
RFuture<Long> |
trimNonStrictAsync(int count)
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.
|
RFuture<Void> |
updateGroupMessageIdAsync(String groupName,
StreamMessageId id)
Updates next message id delivered to consumers.
|
addListener, addListenerAsync, copy, copyAsync, delete, deleteAsync, deleteAsync, dump, dumpAsync, encode, encode, encode, encodeMapKey, encodeMapKeys, encodeMapValue, encodeMapValues, get, getCodec, getLockByMapKey, getLockByValue, getName, getName, isExists, isExistsAsync, migrate, migrateAsync, move, moveAsync, prefixName, removeListener, removeListenerAsync, rename, renameAsync, renamenx, renamenxAsync, restore, restore, restoreAndReplace, restoreAndReplace, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemory, sizeInMemoryAsync, sizeInMemoryAsync, suffixName, toSeconds, toStream, touch, touchAsync, unlink, unlinkAsync
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clearExpire, expire, expireAt, expireAt, remainTimeToLive
addListener, copy, delete, dump, getCodec, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlink
clearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsync
addListenerAsync, copyAsync, deleteAsync, dumpAsync, isExistsAsync, migrateAsync, moveAsync, removeListenerAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, touchAsync, unlinkAsync
public RedissonStream(Codec codec, CommandAsyncExecutor connectionManager, String name)
public RedissonStream(CommandAsyncExecutor connectionManager, String name)
protected void checkKey(Object key)
protected void checkValue(Object value)
public void createGroup(String groupName)
RStream
createGroup
in interface RStream<K,V>
groupName
- - name of grouppublic RFuture<Void> createGroupAsync(String groupName)
RStreamAsync
createGroupAsync
in interface RStreamAsync<K,V>
groupName
- - name of grouppublic void createGroup(String groupName, StreamMessageId id)
RStream
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
createGroup
in interface RStream<K,V>
groupName
- - name of groupid
- - Stream Message IDpublic RFuture<Void> createGroupAsync(String groupName, StreamMessageId id)
RStreamAsync
id
will be available for consumers of this group.
StreamMessageId.NEWEST
is used for messages arrived since the moment of group creating
createGroupAsync
in interface RStreamAsync<K,V>
groupName
- - name of groupid
- - stream idpublic RFuture<Long> ackAsync(String groupName, StreamMessageId... ids)
RStreamAsync
ids
as correctly processed.ackAsync
in interface RStreamAsync<K,V>
groupName
- - name of groupids
- - stream idspublic long ack(String groupName, StreamMessageId... id)
RStream
ids
as correctly processed.public RFuture<PendingResult> listPendingAsync(String groupName)
listPendingAsync
in interface RStreamAsync<K,V>
public PendingResult listPending(String groupName)
listPending
in interface RStream<K,V>
public RFuture<PendingResult> getPendingInfoAsync(String groupName)
RStreamAsync
getPendingInfoAsync
in interface RStreamAsync<K,V>
groupName
- - name of grouppublic PendingResult getPendingInfo(String groupName)
RStream
getPendingInfo
in interface RStream<K,V>
groupName
- - name of grouppublic RFuture<List<PendingEntry>> listPendingAsync(String groupName, String consumerName, StreamMessageId startId, StreamMessageId endId, int count)
RStreamAsync
StreamMessageId.MAX
is used as max Stream Message ID
StreamMessageId.MIN
is used as min Stream Message ID
listPendingAsync
in interface RStreamAsync<K,V>
groupName
- - name of groupconsumerName
- - name of consumerstartId
- - start Stream Message IDendId
- - end Stream Message IDcount
- - amount of messagesRStreamAsync.pendingRangeAsync(java.lang.String, org.redisson.api.StreamMessageId, org.redisson.api.StreamMessageId, int)
public RFuture<List<PendingEntry>> listPendingAsync(String groupName, StreamMessageId startId, StreamMessageId endId, int count)
RStreamAsync
StreamMessageId.MAX
is used as max Stream Message ID
StreamMessageId.MIN
is used as min Stream Message ID
listPendingAsync
in interface RStreamAsync<K,V>
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)
public List<PendingEntry> listPending(String groupName, StreamMessageId startId, StreamMessageId endId, int count)
RStream
StreamMessageId.MAX
is used as max Stream Message ID
StreamMessageId.MIN
is used as min Stream Message ID
listPending
in interface RStream<K,V>
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)
public List<PendingEntry> listPending(String groupName, String consumerName, StreamMessageId startId, StreamMessageId endId, int count)
RStream
StreamMessageId.MAX
is used as max Stream Message ID
StreamMessageId.MIN
is used as min Stream Message ID
listPending
in interface RStream<K,V>
groupName
- - name of groupconsumerName
- - name of consumerstartId
- - start Stream Message IDendId
- - end Stream Message IDcount
- - amount of messagesRStreamAsync.pendingRangeAsync(java.lang.String, org.redisson.api.StreamMessageId, org.redisson.api.StreamMessageId, int)
public List<StreamMessageId> fastClaim(String groupName, String consumerName, long idleTime, TimeUnit idleTimeUnit, StreamMessageId... ids)
RStream
public RFuture<List<StreamMessageId>> fastClaimAsync(String groupName, String consumerName, long idleTime, TimeUnit idleTimeUnit, StreamMessageId... ids)
RStreamAsync
fastClaimAsync
in interface RStreamAsync<K,V>
groupName
- - name of groupconsumerName
- - name of consumeridleTime
- - minimum idle time of messagesidleTimeUnit
- - idle time unitids
- - Stream Message IDspublic RFuture<Map<StreamMessageId,Map<K,V>>> claimAsync(String groupName, String consumerName, long idleTime, TimeUnit idleTimeUnit, StreamMessageId... ids)
RStreamAsync
claimAsync
in interface RStreamAsync<K,V>
groupName
- - name of groupconsumerName
- - name of consumeridleTime
- - minimum idle time of messagesidleTimeUnit
- - idle time unitids
- - stream idspublic Map<StreamMessageId,Map<K,V>> claim(String groupName, String consumerName, long idleTime, TimeUnit idleTimeUnit, StreamMessageId... ids)
RStream
public RFuture<Map<StreamMessageId,Map<K,V>>> readGroupAsync(String groupName, String consumerName, StreamMessageId... ids)
RStreamAsync
groupName
by consumerName
and specified collection of Stream IDs.readGroupAsync
in interface RStreamAsync<K,V>
groupName
- - name of groupconsumerName
- - name of consumerids
- - collection of Stream IDspublic RFuture<Map<StreamMessageId,Map<K,V>>> readGroupAsync(String groupName, String consumerName, int count, StreamMessageId... ids)
RStreamAsync
groupName
by consumerName
and specified collection of Stream IDs.readGroupAsync
in interface RStreamAsync<K,V>
groupName
- - name of groupconsumerName
- - name of consumercount
- - stream data size limitids
- - collection of Stream IDspublic RFuture<Map<StreamMessageId,Map<K,V>>> readGroupAsync(String groupName, String consumerName, long timeout, TimeUnit unit, StreamMessageId... ids)
RStreamAsync
groupName
by consumerName
and specified collection of Stream IDs.
Wait for stream data availability for specified timeout
interval.readGroupAsync
in interface RStreamAsync<K,V>
groupName
- - name of groupconsumerName
- - name of consumertimeout
- - time interval to wait for stream data availabilityunit
- - time interval unitids
- - collection of Stream IDspublic RFuture<Map<StreamMessageId,Map<K,V>>> readGroupAsync(String groupName, String consumerName, int count, long timeout, TimeUnit unit, StreamMessageId... ids)
RStreamAsync
groupName
by consumerName
and specified collection of Stream IDs.
Wait for stream data availability for specified timeout
interval.readGroupAsync
in interface RStreamAsync<K,V>
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 IDspublic Map<String,Map<StreamMessageId,Map<K,V>>> readGroup(String groupName, String consumerName, StreamMessageId id, Map<String,StreamMessageId> keyToId)
RStream
groupName
by consumerName
, starting by specified message ids for this and other streams.public RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readGroupAsync(String groupName, String consumerName, StreamMessageId id, Map<String,StreamMessageId> keyToId)
RStreamAsync
groupName
by consumerName
, starting by specified message ids for this and other streams.readGroupAsync
in interface RStreamAsync<K,V>
groupName
- - name of groupconsumerName
- - name of consumerid
- - starting message id for this streamkeyToId
- - Stream Message ID mapped by stream namepublic Map<String,Map<StreamMessageId,Map<K,V>>> readGroup(String groupName, String consumerName, int count, StreamMessageId id, Map<String,StreamMessageId> keyToId)
RStream
groupName
by consumerName
, starting by specified message ids for this and other streams.readGroup
in interface RStream<K,V>
groupName
- - name of groupconsumerName
- - name of consumercount
- - stream data size limitid
- - starting message id for this streamkeyToId
- - Stream Message ID mapped by stream namepublic RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readGroupAsync(String groupName, String consumerName, int count, StreamMessageId id, Map<String,StreamMessageId> keyToId)
RStreamAsync
groupName
by consumerName
, starting by specified message ids for this and other streams.readGroupAsync
in interface RStreamAsync<K,V>
groupName
- - name of groupconsumerName
- - name of consumercount
- - stream data size limitid
- - starting message id for this streamkeyToId
- - Stream Message ID mapped by stream namepublic 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)
RStreamAsync
groupName
by consumerName
, starting by specified message ids for this and other streams.
Waits for the first stream data availability for specified timeout
interval.readGroupAsync
in interface RStreamAsync<K,V>
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 streampublic 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)
RStreamAsync
groupName
by consumerName
, starting by specified message ids for this and other streams.
Waits for the first stream data availability for specified timeout
interval.readGroupAsync
in interface RStreamAsync<K,V>
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 streampublic RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readGroupAsync(String groupName, String consumerName, long timeout, TimeUnit unit, StreamMessageId id, Map<String,StreamMessageId> keyToId)
RStreamAsync
groupName
by consumerName
, starting by specified message ids for this and other streams.
Waits for the first stream data availability for specified timeout
interval.readGroupAsync
in interface RStreamAsync<K,V>
groupName
- - name of groupconsumerName
- - name of consumertimeout
- - time interval to wait for stream data availabilityunit
- - time interval unitid
- - starting message id for this streamkeyToId
- - Stream Message ID mapped by stream namepublic Map<String,Map<StreamMessageId,Map<K,V>>> readGroup(String groupName, String consumerName, int count, long timeout, TimeUnit unit, StreamMessageId id, Map<String,StreamMessageId> keyToId)
RStream
groupName
by consumerName
, starting by specified message ids for this and other streams.
Waits for the first stream data availability for specified timeout
interval.readGroup
in interface RStream<K,V>
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 streamkeyToId
- - Stream Message ID mapped by stream namepublic Map<String,Map<StreamMessageId,Map<K,V>>> readGroup(String groupName, String consumerName, long timeout, TimeUnit unit, StreamMessageId id, Map<String,StreamMessageId> keyToId)
RStream
groupName
by consumerName
, starting by specified message ids for this and other streams.
Waits for the first stream data availability for specified timeout
interval.readGroup
in interface RStream<K,V>
groupName
- - name of groupconsumerName
- - name of consumertimeout
- - time interval to wait for stream data availabilityunit
- - time interval unitid
- - starting message id for this streamkeyToId
- - Stream Message ID mapped by stream namepublic RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readGroupAsync(String groupName, String consumerName, StreamMessageId id, String key2, StreamMessageId id2)
RStreamAsync
groupName
by consumerName
, starting by specified message ids for this and other streams.readGroupAsync
in interface RStreamAsync<K,V>
groupName
- - name of groupconsumerName
- - name of consumerid
- - starting message id for this streamkey2
- - name of second streamid2
- - starting message id for second streampublic RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readGroupAsync(String groupName, String consumerName, StreamMessageId id, String key2, StreamMessageId id2, String key3, StreamMessageId id3)
RStreamAsync
groupName
by consumerName
, starting by specified message ids for this and other streams.readGroupAsync
in interface RStreamAsync<K,V>
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 streampublic RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readGroupAsync(String groupName, String consumerName, int count, StreamMessageId id, String key2, StreamMessageId id2)
RStreamAsync
groupName
by consumerName
, starting by specified message ids for this and other streams.readGroupAsync
in interface RStreamAsync<K,V>
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 streampublic 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)
RStreamAsync
groupName
by consumerName
, starting by specified message ids for this and other streams.readGroupAsync
in interface RStreamAsync<K,V>
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 streampublic RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readGroupAsync(String groupName, String consumerName, long timeout, TimeUnit unit, StreamMessageId id, String key2, StreamMessageId id2)
RStreamAsync
groupName
by consumerName
, starting by specified message ids for this and other streams.
Waits for the first stream data availability for specified timeout
interval.readGroupAsync
in interface RStreamAsync<K,V>
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 streampublic 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)
RStreamAsync
groupName
by consumerName
, starting by specified message ids for this and other streams.
Waits for the first stream data availability for specified timeout
interval.readGroupAsync
in interface RStreamAsync<K,V>
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 streampublic Map<String,Map<StreamMessageId,Map<K,V>>> readGroup(String groupName, String consumerName, StreamMessageId id, String key2, StreamMessageId id2)
RStream
groupName
by consumerName
, starting by specified message ids for this and other streams.readGroup
in interface RStream<K,V>
groupName
- - name of groupconsumerName
- - name of consumerid
- - starting message id for this streamkey2
- - name of second streamid2
- - starting message id for second streampublic Map<String,Map<StreamMessageId,Map<K,V>>> readGroup(String groupName, String consumerName, StreamMessageId id, String key2, StreamMessageId id2, String key3, StreamMessageId id3)
RStream
groupName
by consumerName
, starting by specified message ids for this and other streams.readGroup
in interface RStream<K,V>
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 streampublic Map<String,Map<StreamMessageId,Map<K,V>>> readGroup(String groupName, String consumerName, int count, StreamMessageId id, String key2, StreamMessageId id2)
RStream
groupName
by consumerName
, starting by specified message ids for this and other streams.readGroup
in interface RStream<K,V>
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 streampublic Map<String,Map<StreamMessageId,Map<K,V>>> readGroup(String groupName, String consumerName, int count, StreamMessageId id, String key2, StreamMessageId id2, String key3, StreamMessageId id3)
RStream
groupName
by consumerName
, starting by specified message ids for this and other streams.readGroup
in interface RStream<K,V>
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 streampublic Map<String,Map<StreamMessageId,Map<K,V>>> readGroup(String groupName, String consumerName, long timeout, TimeUnit unit, StreamMessageId id, String key2, StreamMessageId id2)
RStream
groupName
by consumerName
, starting by specified message ids for this and other streams.
Waits for the first stream data availability for specified timeout
interval.readGroup
in interface RStream<K,V>
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 streampublic 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)
RStream
groupName
by consumerName
, starting by specified message ids for this and other streams.
Waits for the first stream data availability for specified timeout
interval.readGroup
in interface RStream<K,V>
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 streampublic Map<String,Map<StreamMessageId,Map<K,V>>> readGroup(String groupName, String consumerName, int count, long timeout, TimeUnit unit, StreamMessageId id, String key2, StreamMessageId id2)
RStream
groupName
by consumerName
, starting by specified message ids for this and other streams.
Waits for the first stream data availability for specified timeout
interval.readGroup
in interface RStream<K,V>
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 streampublic 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)
RStream
groupName
by consumerName
, starting by specified message ids for this and other streams.
Waits for the first stream data availability for specified timeout
interval.readGroup
in interface RStream<K,V>
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 streampublic RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readGroupAsync(String groupName, String consumerName, int count, long timeout, TimeUnit unit, StreamMessageId id, Map<String,StreamMessageId> keyToId)
public Map<StreamMessageId,Map<K,V>> readGroup(String groupName, String consumerName, StreamMessageId... ids)
RStream
groupName
by consumerName
and specified collection of Stream Message IDs.public Map<StreamMessageId,Map<K,V>> readGroup(String groupName, String consumerName, int count, StreamMessageId... ids)
RStream
groupName
by consumerName
and specified collection of Stream Message IDs.public Map<StreamMessageId,Map<K,V>> readGroup(String groupName, String consumerName, long timeout, TimeUnit unit, StreamMessageId... ids)
RStream
groupName
by consumerName
and specified collection of Stream Message IDs.
Waits for stream data availability for specified timeout
interval.readGroup
in interface RStream<K,V>
groupName
- - name of groupconsumerName
- - name of consumertimeout
- - time interval to wait for stream data availabilityunit
- - time interval unitids
- - collection of Stream Message IDspublic Map<StreamMessageId,Map<K,V>> readGroup(String groupName, String consumerName, int count, long timeout, TimeUnit unit, StreamMessageId... ids)
RStream
groupName
by consumerName
and specified collection of Stream Message IDs.
Waits for stream data availability for specified timeout
interval.readGroup
in interface RStream<K,V>
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 IDspublic StreamMessageId addAll(Map<K,V> entries)
RStream
public RFuture<StreamMessageId> addAllAsync(Map<K,V> entries)
RStreamAsync
addAllAsync
in interface RStreamAsync<K,V>
entries
- - entries to addpublic void addAll(StreamMessageId id, Map<K,V> entries)
RStream
public RFuture<Void> addAllAsync(StreamMessageId id, Map<K,V> entries)
RStreamAsync
addAllAsync
in interface RStreamAsync<K,V>
id
- - Stream IDentries
- - entries to addpublic StreamMessageId addAll(Map<K,V> entries, int trimLen, boolean trimStrict)
RStream
trimLen
size.
If trimStrict
is false
then trims to few tens of entries more than specified length to trim.public RFuture<StreamMessageId> addAllAsync(Map<K,V> entries, int trimLen, boolean trimStrict)
RStreamAsync
trimLen
size.
If trimStrict
is false
then trims to few tens of entries more than specified length to trim.addAllAsync
in interface RStreamAsync<K,V>
entries
- - entries to addtrimLen
- - length to trimtrimStrict
- - if false
then trims to few tens of entries more than specified length to trimpublic void addAll(StreamMessageId id, Map<K,V> entries, int trimLen, boolean trimStrict)
RStream
trimLen
size.
If trimStrict
is false
then trims to few tens of entries more than specified length to trim.public RFuture<Void> addAllAsync(StreamMessageId id, Map<K,V> entries, int trimLen, boolean trimStrict)
RStreamAsync
trimLen
size.
If trimStrict
is false
then trims to few tens of entries more than specified length to trim.addAllAsync
in interface RStreamAsync<K,V>
id
- - Stream IDentries
- - entries to addtrimLen
- - length to trimtrimStrict
- - if false
then trims to few tens of entries more than specified length to trimpublic long size()
RStream
public RFuture<Long> sizeAsync()
RStreamAsync
sizeAsync
in interface RStreamAsync<K,V>
public Map<String,Map<StreamMessageId,Map<K,V>>> read(StreamMessageId id, Map<String,StreamMessageId> keyToId)
RStream
public RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(StreamMessageId id, Map<String,StreamMessageId> keyToId)
RStreamAsync
readAsync
in interface RStreamAsync<K,V>
id
- - id of this streamkeyToId
- - stream id mapped by namepublic Map<String,Map<StreamMessageId,Map<K,V>>> read(int count, StreamMessageId id, Map<String,StreamMessageId> keyToId)
RStream
public RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(int count, StreamMessageId id, Map<String,StreamMessageId> keyToId)
RStreamAsync
readAsync
in interface RStreamAsync<K,V>
count
- - stream data size limitid
- - id of this streamkeyToId
- - stream id mapped by namepublic RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(int count, long timeout, TimeUnit unit, StreamMessageId id, String key2, StreamMessageId id2)
RStreamAsync
timeout
interval.readAsync
in interface RStreamAsync<K,V>
count
- - stream data size limittimeout
- - time interval to wait for stream data availabilityunit
- - time interval unitid
- - id of this streamkey2
- - name of second streamid2
- - id of second streampublic RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(int count, long timeout, TimeUnit unit, StreamMessageId id, String key2, StreamMessageId id2, String key3, StreamMessageId id3)
RStreamAsync
timeout
interval.readAsync
in interface RStreamAsync<K,V>
count
- - stream data size limittimeout
- - time interval to wait for stream data availabilityunit
- - time interval unitid
- - id of this streamkey2
- - name of second streamid2
- - id of second streamkey3
- - name of third streamid3
- - id of third streampublic RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(long timeout, TimeUnit unit, StreamMessageId id, Map<String,StreamMessageId> keyToId)
RStreamAsync
timeout
interval.readAsync
in interface RStreamAsync<K,V>
timeout
- - time interval to wait for stream data availabilityunit
- - time interval unitid
- - id of this streamkeyToId
- - stream id mapped by namepublic Map<String,Map<StreamMessageId,Map<K,V>>> read(int count, long timeout, TimeUnit unit, StreamMessageId id, Map<String,StreamMessageId> keyToId)
RStream
timeout
interval.read
in interface RStream<K,V>
count
- - stream data size limittimeout
- - time interval to wait for stream data availabilityunit
- - time interval unitid
- - id of this streamkeyToId
- - Stream Message ID mapped by namepublic Map<String,Map<StreamMessageId,Map<K,V>>> read(long timeout, TimeUnit unit, StreamMessageId id, Map<String,StreamMessageId> keyToId)
RStream
timeout
interval.public RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(StreamMessageId id, String key2, StreamMessageId id2)
RStreamAsync
readAsync
in interface RStreamAsync<K,V>
id
- - id of this streamkey2
- - name of second streamid2
- - id of second streampublic RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(StreamMessageId id, String key2, StreamMessageId id2, String key3, StreamMessageId id3)
RStreamAsync
readAsync
in interface RStreamAsync<K,V>
id
- - id of this streamkey2
- - name of second streamid2
- - id of second streamkey3
- - name of third streamid3
- - id of third streampublic RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(int count, StreamMessageId id, String key2, StreamMessageId id2)
RStreamAsync
readAsync
in interface RStreamAsync<K,V>
count
- - stream data size limitid
- - id of this streamkey2
- - name of second streamid2
- - id of second streampublic RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(int count, StreamMessageId id, String key2, StreamMessageId id2, String key3, StreamMessageId id3)
RStreamAsync
readAsync
in interface RStreamAsync<K,V>
count
- - stream data size limitid
- - id of this streamkey2
- - name of second streamid2
- - id of second streamkey3
- - name of third streamid3
- - id of third streampublic RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(long timeout, TimeUnit unit, StreamMessageId id, String key2, StreamMessageId id2)
RStreamAsync
timeout
interval.readAsync
in interface RStreamAsync<K,V>
timeout
- - time interval to wait for stream data availabilityunit
- - time interval unitid
- - id of this streamkey2
- - name of second streamid2
- - id of second streampublic RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(long timeout, TimeUnit unit, StreamMessageId id, String key2, StreamMessageId id2, String key3, StreamMessageId id3)
RStreamAsync
timeout
interval.readAsync
in interface RStreamAsync<K,V>
timeout
- - time interval to wait for stream data availabilityunit
- - time interval unitid
- - id of this streamkey2
- - name of second streamid2
- - id of second streamkey3
- - name of third streamid3
- - id of third streampublic Map<String,Map<StreamMessageId,Map<K,V>>> read(StreamMessageId id, String key2, StreamMessageId id2)
RStream
public Map<String,Map<StreamMessageId,Map<K,V>>> read(StreamMessageId id, String key2, StreamMessageId id2, String key3, StreamMessageId id3)
RStream
public Map<String,Map<StreamMessageId,Map<K,V>>> read(int count, StreamMessageId id, String key2, StreamMessageId id2)
RStream
public Map<String,Map<StreamMessageId,Map<K,V>>> read(int count, StreamMessageId id, String key2, StreamMessageId id2, String key3, StreamMessageId id3)
RStream
public Map<String,Map<StreamMessageId,Map<K,V>>> read(long timeout, TimeUnit unit, StreamMessageId id, String key2, StreamMessageId id2)
RStream
timeout
interval.public Map<String,Map<StreamMessageId,Map<K,V>>> read(long timeout, TimeUnit unit, StreamMessageId id, String key2, StreamMessageId id2, String key3, StreamMessageId id3)
RStream
timeout
interval.read
in interface RStream<K,V>
timeout
- - time interval to wait for stream data availabilityunit
- - time interval unitid
- - id of this streamkey2
- - name of second streamid2
- - id of second streamkey3
- - name of third streamid3
- - id of third streampublic Map<String,Map<StreamMessageId,Map<K,V>>> read(int count, long timeout, TimeUnit unit, StreamMessageId id, String key2, StreamMessageId id2)
RStream
timeout
interval.read
in interface RStream<K,V>
count
- - stream data size limittimeout
- - time interval to wait for stream data availabilityunit
- - time interval unitid
- - id of this streamkey2
- - name of second streamid2
- - id of second streampublic Map<String,Map<StreamMessageId,Map<K,V>>> read(int count, long timeout, TimeUnit unit, StreamMessageId id, String key2, StreamMessageId id2, String key3, StreamMessageId id3)
RStream
timeout
interval.read
in interface RStream<K,V>
count
- - stream data size limittimeout
- - time interval to wait for stream data availabilityunit
- - time interval unitid
- - id of this streamkey2
- - name of second streamid2
- - id of second streamkey3
- - name of third streamid3
- - id of third streampublic RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(int count, long timeout, TimeUnit unit, StreamMessageId id, Map<String,StreamMessageId> keyToId)
RStreamAsync
timeout
interval.readAsync
in interface RStreamAsync<K,V>
count
- - stream data size limittimeout
- - time interval to wait for stream data availabilityunit
- - time interval unitid
- - id of this streamkeyToId
- - stream id mapped by namepublic RFuture<StreamMessageId> addAsync(K key, V value)
RStreamAsync
addAsync
in interface RStreamAsync<K,V>
key
- - key of entryvalue
- - value of entrypublic RFuture<Void> addAsync(StreamMessageId id, K key, V value)
RStreamAsync
addAsync
in interface RStreamAsync<K,V>
id
- - Stream IDkey
- - key of entryvalue
- - value of entrypublic RFuture<StreamMessageId> addAsync(K key, V value, int trimLen, boolean trimStrict)
RStreamAsync
trimLen
size.
If trimStrict
is false
then trims to few tens of entries more than specified length to trim.addAsync
in interface RStreamAsync<K,V>
key
- - key of entryvalue
- - value of entrytrimLen
- - length to trimtrimStrict
- - if false
then trims to few tens of entries more than specified length to trimpublic RFuture<Void> addAsync(StreamMessageId id, K key, V value, int trimLen, boolean trimStrict)
RStreamAsync
trimLen
size.
If trimStrict
is false
then trims to few tens of entries more than specified length to trim.addAsync
in interface RStreamAsync<K,V>
id
- - Stream IDkey
- - key of entryvalue
- - value of entrytrimLen
- - length to trimtrimStrict
- - if false
then trims to few tens of entries more than specified length to trimpublic StreamMessageId add(K key, V value)
RStream
public void add(StreamMessageId id, K key, V value)
RStream
public StreamMessageId add(K key, V value, int trimLen, boolean trimStrict)
RStream
trimLen
size.
If trimStrict
is false
then trims to few tens of entries more than specified length to trim.public void add(StreamMessageId id, K key, V value, int trimLen, boolean trimStrict)
RStream
trimLen
size.
If trimStrict
is false
then trims to few tens of entries more than specified length to trim.public RFuture<Map<StreamMessageId,Map<K,V>>> readAsync(int count, StreamMessageId... ids)
RStreamAsync
readAsync
in interface RStreamAsync<K,V>
count
- - stream data size limitids
- - collection of Stream IDspublic Map<StreamMessageId,Map<K,V>> read(int count, long timeout, TimeUnit unit, StreamMessageId... ids)
RStream
timeout
interval.public Map<StreamMessageId,Map<K,V>> read(int count, StreamMessageId... ids)
RStream
public RFuture<Map<StreamMessageId,Map<K,V>>> readAsync(int count, long timeout, TimeUnit unit, StreamMessageId... ids)
RStreamAsync
timeout
interval.readAsync
in interface RStreamAsync<K,V>
count
- - stream data size limittimeout
- - time interval to wait for stream data availabilityunit
- - time interval unitids
- - collection of Stream IDspublic RFuture<Map<StreamMessageId,Map<K,V>>> rangeAsync(int count, StreamMessageId startId, StreamMessageId endId)
RStreamAsync
rangeAsync
in interface RStreamAsync<K,V>
count
- - stream data size limitstartId
- - start Stream IDendId
- - end Stream IDpublic Map<StreamMessageId,Map<K,V>> range(int count, StreamMessageId startId, StreamMessageId endId)
RStream
public RFuture<Map<StreamMessageId,Map<K,V>>> rangeReversedAsync(int count, StreamMessageId startId, StreamMessageId endId)
RStreamAsync
rangeReversedAsync
in interface RStreamAsync<K,V>
count
- - stream data size limitstartId
- - start Stream IDendId
- - end Stream IDpublic Map<StreamMessageId,Map<K,V>> rangeReversed(int count, StreamMessageId startId, StreamMessageId endId)
RStream
rangeReversed
in interface RStream<K,V>
count
- - stream data size limitstartId
- - start Stream Message IDendId
- - end Stream Message IDpublic RFuture<Map<StreamMessageId,Map<K,V>>> readAsync(StreamMessageId... ids)
RStreamAsync
readAsync
in interface RStreamAsync<K,V>
ids
- - collection of Stream IDspublic RFuture<Map<StreamMessageId,Map<K,V>>> readAsync(long timeout, TimeUnit unit, StreamMessageId... ids)
RStreamAsync
timeout
interval.readAsync
in interface RStreamAsync<K,V>
timeout
- - time interval to wait for stream data availabilityunit
- - time interval unitids
- - collection of Stream IDspublic RFuture<Map<StreamMessageId,Map<K,V>>> rangeAsync(StreamMessageId startId, StreamMessageId endId)
RStreamAsync
rangeAsync
in interface RStreamAsync<K,V>
startId
- - start Stream IDendId
- - end Stream IDpublic RFuture<Map<StreamMessageId,Map<K,V>>> rangeReversedAsync(StreamMessageId startId, StreamMessageId endId)
RStreamAsync
rangeReversedAsync
in interface RStreamAsync<K,V>
startId
- - start Stream IDendId
- - end Stream IDpublic Map<StreamMessageId,Map<K,V>> read(StreamMessageId... ids)
RStream
public Map<StreamMessageId,Map<K,V>> read(long timeout, TimeUnit unit, StreamMessageId... ids)
RStream
timeout
interval.public Map<StreamMessageId,Map<K,V>> range(StreamMessageId startId, StreamMessageId endId)
RStream
public Map<StreamMessageId,Map<K,V>> rangeReversed(StreamMessageId startId, StreamMessageId endId)
RStream
rangeReversed
in interface RStream<K,V>
startId
- - start Stream Message IDendId
- - end Stream Message IDpublic RFuture<Long> removeAsync(StreamMessageId... ids)
RStreamAsync
removeAsync
in interface RStreamAsync<K,V>
ids
- - id of messages to removepublic long remove(StreamMessageId... ids)
RStream
public RFuture<Long> trimAsync(int count)
RStreamAsync
trimAsync
in interface RStreamAsync<K,V>
count
- - new size of streampublic RFuture<Long> trimNonStrictAsync(int count)
RStreamAsync
trimNonStrictAsync
in interface RStreamAsync<K,V>
count
- - new size of streampublic long trim(int count)
RStream
public long trimNonStrict(int count)
RStream
trimNonStrict
in interface RStream<K,V>
count
- - new size of streampublic RFuture<Void> removeGroupAsync(String groupName)
RStreamAsync
removeGroupAsync
in interface RStreamAsync<K,V>
groupName
- - name of grouppublic void removeGroup(String groupName)
RStream
removeGroup
in interface RStream<K,V>
groupName
- - name of grouppublic RFuture<Long> removeConsumerAsync(String groupName, String consumerName)
RStreamAsync
removeConsumerAsync
in interface RStreamAsync<K,V>
groupName
- - name of groupconsumerName
- - name of consumerpublic long removeConsumer(String groupName, String consumerName)
RStream
removeConsumer
in interface RStream<K,V>
groupName
- - name of groupconsumerName
- - name of consumerpublic RFuture<Void> updateGroupMessageIdAsync(String groupName, StreamMessageId id)
RStreamAsync
updateGroupMessageIdAsync
in interface RStreamAsync<K,V>
groupName
- - name of groupid
- - Stream Message IDpublic void updateGroupMessageId(String groupName, StreamMessageId id)
RStream
updateGroupMessageId
in interface RStream<K,V>
groupName
- - name of groupid
- - Stream Message IDpublic StreamInfo<K,V> getInfo()
RStream
public RFuture<StreamInfo<K,V>> getInfoAsync()
RStreamAsync
getInfoAsync
in interface RStreamAsync<K,V>
public List<StreamGroup> listGroups()
RStream
listGroups
in interface RStream<K,V>
public RFuture<List<StreamGroup>> listGroupsAsync()
RStreamAsync
listGroupsAsync
in interface RStreamAsync<K,V>
public List<StreamConsumer> listConsumers(String groupName)
RStream
groupName
.listConsumers
in interface RStream<K,V>
groupName
- - name of grouppublic RFuture<List<StreamConsumer>> listConsumersAsync(String groupName)
RStreamAsync
groupName
.listConsumersAsync
in interface RStreamAsync<K,V>
groupName
- - name of grouppublic RFuture<Map<StreamMessageId,Map<K,V>>> pendingRangeAsync(String groupName, StreamMessageId startId, StreamMessageId endId, int count)
RStreamAsync
StreamMessageId.MAX
is used as max Stream Message ID
StreamMessageId.MIN
is used as min Stream Message ID
pendingRangeAsync
in interface RStreamAsync<K,V>
groupName
- - name of groupstartId
- - start Stream Message IDendId
- - end Stream Message IDcount
- - amount of messagesRStreamAsync.listPendingAsync(java.lang.String)
public RFuture<Map<StreamMessageId,Map<K,V>>> pendingRangeAsync(String groupName, String consumerName, StreamMessageId startId, StreamMessageId endId, int count)
RStreamAsync
StreamMessageId.MAX
is used as max Stream Message ID
StreamMessageId.MIN
is used as min Stream Message ID
pendingRangeAsync
in interface RStreamAsync<K,V>
groupName
- - name of groupconsumerName
- - name of consumerstartId
- - start Stream Message IDendId
- - end Stream Message IDcount
- - amount of messagesRStreamAsync.listPendingAsync(java.lang.String)
public Map<StreamMessageId,Map<K,V>> pendingRange(String groupName, String consumerName, StreamMessageId startId, StreamMessageId endId, int count)
RStream
StreamMessageId.MAX
is used as max Stream Message ID
StreamMessageId.MIN
is used as min Stream Message ID
pendingRange
in interface RStream<K,V>
groupName
- - name of groupconsumerName
- - name of consumerstartId
- - start Stream Message IDendId
- - end Stream Message IDcount
- - amount of messagesRStream.listPending(java.lang.String)
public Map<StreamMessageId,Map<K,V>> pendingRange(String groupName, StreamMessageId startId, StreamMessageId endId, int count)
RStream
StreamMessageId.MAX
is used as max Stream Message ID
StreamMessageId.MIN
is used as min Stream Message ID
pendingRange
in interface RStream<K,V>
groupName
- - name of groupstartId
- - start Stream Message IDendId
- - end Stream Message IDcount
- - amount of messagesRStream.listPending(java.lang.String)
public boolean expire(long timeToLive, TimeUnit timeUnit)
RExpirable
expire
in interface RExpirable
timeToLive
- - timeout before object will be deletedtimeUnit
- - timeout time unittrue
if the timeout was set and false
if notpublic RFuture<Boolean> expireAsync(long timeToLive, TimeUnit timeUnit)
RExpirableAsync
expireAsync
in interface RExpirableAsync
timeToLive
- - timeout before object will be deletedtimeUnit
- - timeout time unittrue
if the timeout was set and false
if notpublic boolean expireAt(long timestamp)
RExpirable
expireAt
in interface RExpirable
timestamp
- - expire date in milliseconds (Unix timestamp)true
if the timeout was set and false
if notpublic RFuture<Boolean> expireAtAsync(long timestamp)
RExpirableAsync
expireAtAsync
in interface RExpirableAsync
timestamp
- - expire date in milliseconds (Unix timestamp)true
if the timeout was set and false
if notpublic boolean expireAt(Date timestamp)
RExpirable
expireAt
in interface RExpirable
timestamp
- - expire datetrue
if the timeout was set and false
if notpublic RFuture<Boolean> expireAtAsync(Date timestamp)
RExpirableAsync
expireAtAsync
in interface RExpirableAsync
timestamp
- - expire datetrue
if the timeout was set and false
if notpublic boolean clearExpire()
RExpirable
clearExpire
in interface RExpirable
true
if timeout was removed
false
if object does not exist or does not have an associated timeoutpublic RFuture<Boolean> clearExpireAsync()
RExpirableAsync
clearExpireAsync
in interface RExpirableAsync
true
if the timeout was cleared and false
if notpublic long remainTimeToLive()
RExpirable
remainTimeToLive
in interface RExpirable
public RFuture<Long> remainTimeToLiveAsync()
RExpirableAsync
remainTimeToLiveAsync
in interface RExpirableAsync
protected RFuture<Boolean> expireAsync(long timeToLive, TimeUnit timeUnit, String... keys)
Copyright © 2014–2020 Redisson. All rights reserved.