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, addListener, addListenerAsync, addListenerAsync, copy, copyAsync, delete, deleteAsync, deleteAsync, dump, dumpAsync, encode, encode, encode, encode, encodeMapKey, encodeMapKeys, encodeMapValue, encodeMapValues, get, getCodec, getIdleTime, getIdleTimeAsync, getLockByMapKey, getLockByValue, getName, getName, isExists, isExistsAsync, migrate, migrateAsync, move, moveAsync, prefixName, removeListener, removeListenerAsync, removeListenersAsync, rename, renameAsync, renamenx, renamenxAsync, restore, restore, restoreAndReplace, restoreAndReplace, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemory, sizeInMemoryAsync, sizeInMemoryAsync, sizeInMemoryAsync, suffixName, toSeconds, toStream, touch, touchAsync, unlink, unlinkAsyncclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearExpire, expire, expireAt, expireAt, remainTimeToLiveaddListener, copy, delete, dump, getCodec, getIdleTime, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlinkclearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsyncaddListenerAsync, copyAsync, deleteAsync, dumpAsync, getIdleTimeAsync, isExistsAsync, migrateAsync, moveAsync, removeListenerAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, touchAsync, unlinkAsyncpublic 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)
RStreamcreateGroup in interface RStream<K,V>groupName - - name of grouppublic RFuture<Void> createGroupAsync(String groupName)
RStreamAsynccreateGroupAsync in interface RStreamAsync<K,V>groupName - - name of grouppublic void createGroup(String groupName, StreamMessageId id)
RStreamid 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)
RStreamAsyncid 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)
RStreamAsyncids as correctly processed.ackAsync in interface RStreamAsync<K,V>groupName - - name of groupids - - stream idspublic long ack(String groupName, StreamMessageId... id)
RStreamids 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)
RStreamAsyncgetPendingInfoAsync in interface RStreamAsync<K,V>groupName - - name of grouppublic PendingResult getPendingInfo(String groupName)
RStreamgetPendingInfo 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)
RStreampublic RFuture<List<StreamMessageId>> fastClaimAsync(String groupName, String consumerName, long idleTime, TimeUnit idleTimeUnit, StreamMessageId... ids)
RStreamAsyncfastClaimAsync 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)
RStreamAsyncclaimAsync 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)
RStreampublic RFuture<Map<StreamMessageId,Map<K,V>>> readGroupAsync(String groupName, String consumerName, StreamMessageId... ids)
RStreamAsyncgroupName 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)
RStreamAsyncgroupName 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)
RStreamAsyncgroupName 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)
RStreamAsyncgroupName 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)
RStreamgroupName 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)
RStreamAsyncgroupName 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)
RStreamgroupName 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)
RStreamAsyncgroupName 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)
RStreamAsyncgroupName 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)
RStreamAsyncgroupName 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)
RStreamAsyncgroupName 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)
RStreamgroupName 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)
RStreamgroupName 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)
RStreamAsyncgroupName 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)
RStreamAsyncgroupName 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)
RStreamAsyncgroupName 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)
RStreamAsyncgroupName 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)
RStreamAsyncgroupName 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)
RStreamAsyncgroupName 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)
RStreamgroupName 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)
RStreamgroupName 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)
RStreamgroupName 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)
RStreamgroupName 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)
RStreamgroupName 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)
RStreamgroupName 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)
RStreamgroupName 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)
RStreamgroupName 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)
RStreamgroupName by consumerName and specified collection of Stream Message IDs.public Map<StreamMessageId,Map<K,V>> readGroup(String groupName, String consumerName, int count, StreamMessageId... ids)
RStreamgroupName 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)
RStreamgroupName 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)
RStreamgroupName 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)
RStreampublic RFuture<StreamMessageId> addAllAsync(Map<K,V> entries)
RStreamAsyncaddAllAsync in interface RStreamAsync<K,V>entries - - entries to addpublic void addAll(StreamMessageId id, Map<K,V> entries)
RStreampublic RFuture<Void> addAllAsync(StreamMessageId id, Map<K,V> entries)
RStreamAsyncaddAllAsync in interface RStreamAsync<K,V>id - - Stream IDentries - - entries to addpublic StreamMessageId addAll(Map<K,V> entries, int trimLen, boolean trimStrict)
RStreamtrimLen 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)
RStreamAsynctrimLen 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)
RStreamtrimLen 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)
RStreamAsynctrimLen 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()
RStreampublic RFuture<Long> sizeAsync()
RStreamAsyncsizeAsync in interface RStreamAsync<K,V>public Map<String,Map<StreamMessageId,Map<K,V>>> read(StreamMessageId id, Map<String,StreamMessageId> keyToId)
RStreampublic RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(StreamMessageId id, Map<String,StreamMessageId> keyToId)
RStreamAsyncreadAsync 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)
RStreampublic RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(int count, StreamMessageId id, Map<String,StreamMessageId> keyToId)
RStreamAsyncreadAsync 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)
RStreamAsynctimeout 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)
RStreamAsynctimeout 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)
RStreamAsynctimeout 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)
RStreamtimeout 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)
RStreamtimeout interval.public RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(StreamMessageId id, String key2, StreamMessageId id2)
RStreamAsyncreadAsync 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)
RStreamAsyncreadAsync 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)
RStreamAsyncreadAsync 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)
RStreamAsyncreadAsync 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)
RStreamAsynctimeout 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)
RStreamAsynctimeout 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)
RStreampublic Map<String,Map<StreamMessageId,Map<K,V>>> read(StreamMessageId id, String key2, StreamMessageId id2, String key3, StreamMessageId id3)
RStreampublic Map<String,Map<StreamMessageId,Map<K,V>>> read(int count, StreamMessageId id, String key2, StreamMessageId id2)
RStreampublic Map<String,Map<StreamMessageId,Map<K,V>>> read(int count, StreamMessageId id, String key2, StreamMessageId id2, String key3, StreamMessageId id3)
RStreampublic Map<String,Map<StreamMessageId,Map<K,V>>> read(long timeout, TimeUnit unit, StreamMessageId id, String key2, StreamMessageId id2)
RStreamtimeout interval.public Map<String,Map<StreamMessageId,Map<K,V>>> read(long timeout, TimeUnit unit, StreamMessageId id, String key2, StreamMessageId id2, String key3, StreamMessageId id3)
RStreamtimeout 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)
RStreamtimeout 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)
RStreamtimeout 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)
RStreamAsynctimeout 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)
RStreamAsyncaddAsync in interface RStreamAsync<K,V>key - - key of entryvalue - - value of entrypublic RFuture<Void> addAsync(StreamMessageId id, K key, V value)
RStreamAsyncaddAsync 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)
RStreamAsynctrimLen 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)
RStreamAsynctrimLen 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)
RStreampublic void add(StreamMessageId id, K key, V value)
RStreampublic StreamMessageId add(K key, V value, int trimLen, boolean trimStrict)
RStreamtrimLen 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)
RStreamtrimLen 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)
RStreamAsyncreadAsync 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)
RStreamtimeout interval.public Map<StreamMessageId,Map<K,V>> read(int count, StreamMessageId... ids)
RStreampublic RFuture<Map<StreamMessageId,Map<K,V>>> readAsync(int count, long timeout, TimeUnit unit, StreamMessageId... ids)
RStreamAsynctimeout 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)
RStreamAsyncrangeAsync 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)
RStreampublic RFuture<Map<StreamMessageId,Map<K,V>>> rangeReversedAsync(int count, StreamMessageId startId, StreamMessageId endId)
RStreamAsyncrangeReversedAsync 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)
RStreamrangeReversed 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)
RStreamAsyncreadAsync in interface RStreamAsync<K,V>ids - - collection of Stream IDspublic RFuture<Map<StreamMessageId,Map<K,V>>> readAsync(long timeout, TimeUnit unit, StreamMessageId... ids)
RStreamAsynctimeout 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)
RStreamAsyncrangeAsync in interface RStreamAsync<K,V>startId - - start Stream IDendId - - end Stream IDpublic RFuture<Map<StreamMessageId,Map<K,V>>> rangeReversedAsync(StreamMessageId startId, StreamMessageId endId)
RStreamAsyncrangeReversedAsync in interface RStreamAsync<K,V>startId - - start Stream IDendId - - end Stream IDpublic Map<StreamMessageId,Map<K,V>> read(StreamMessageId... ids)
RStreampublic Map<StreamMessageId,Map<K,V>> read(long timeout, TimeUnit unit, StreamMessageId... ids)
RStreamtimeout interval.public Map<StreamMessageId,Map<K,V>> range(StreamMessageId startId, StreamMessageId endId)
RStreampublic Map<StreamMessageId,Map<K,V>> rangeReversed(StreamMessageId startId, StreamMessageId endId)
RStreamrangeReversed in interface RStream<K,V>startId - - start Stream Message IDendId - - end Stream Message IDpublic RFuture<Long> removeAsync(StreamMessageId... ids)
RStreamAsyncremoveAsync in interface RStreamAsync<K,V>ids - - id of messages to removepublic long remove(StreamMessageId... ids)
RStreampublic RFuture<Long> trimAsync(int count)
RStreamAsynctrimAsync in interface RStreamAsync<K,V>count - - new size of streampublic RFuture<Long> trimNonStrictAsync(int count)
RStreamAsynctrimNonStrictAsync in interface RStreamAsync<K,V>count - - new size of streampublic long trim(int count)
RStreampublic long trimNonStrict(int count)
RStreamtrimNonStrict in interface RStream<K,V>count - - new size of streampublic RFuture<Void> removeGroupAsync(String groupName)
RStreamAsyncremoveGroupAsync in interface RStreamAsync<K,V>groupName - - name of grouppublic void removeGroup(String groupName)
RStreamremoveGroup in interface RStream<K,V>groupName - - name of grouppublic RFuture<Long> removeConsumerAsync(String groupName, String consumerName)
RStreamAsyncremoveConsumerAsync in interface RStreamAsync<K,V>groupName - - name of groupconsumerName - - name of consumerpublic long removeConsumer(String groupName, String consumerName)
RStreamremoveConsumer in interface RStream<K,V>groupName - - name of groupconsumerName - - name of consumerpublic RFuture<Void> updateGroupMessageIdAsync(String groupName, StreamMessageId id)
RStreamAsyncupdateGroupMessageIdAsync in interface RStreamAsync<K,V>groupName - - name of groupid - - Stream Message IDpublic void updateGroupMessageId(String groupName, StreamMessageId id)
RStreamupdateGroupMessageId in interface RStream<K,V>groupName - - name of groupid - - Stream Message IDpublic StreamInfo<K,V> getInfo()
RStreampublic RFuture<StreamInfo<K,V>> getInfoAsync()
RStreamAsyncgetInfoAsync in interface RStreamAsync<K,V>public List<StreamGroup> listGroups()
RStreamlistGroups in interface RStream<K,V>public RFuture<List<StreamGroup>> listGroupsAsync()
RStreamAsynclistGroupsAsync in interface RStreamAsync<K,V>public List<StreamConsumer> listConsumers(String groupName)
RStreamgroupName.listConsumers in interface RStream<K,V>groupName - - name of grouppublic RFuture<List<StreamConsumer>> listConsumersAsync(String groupName)
RStreamAsyncgroupName.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)
RExpirableexpire in interface RExpirabletimeToLive - - 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)
RExpirableAsyncexpireAsync in interface RExpirableAsynctimeToLive - - timeout before object will be deletedtimeUnit - - timeout time unittrue if the timeout was set and false if notpublic boolean expireAt(long timestamp)
RExpirableexpireAt in interface RExpirabletimestamp - - expire date in milliseconds (Unix timestamp)true if the timeout was set and false if notpublic RFuture<Boolean> expireAtAsync(long timestamp)
RExpirableAsyncexpireAtAsync in interface RExpirableAsynctimestamp - - expire date in milliseconds (Unix timestamp)true if the timeout was set and false if notpublic boolean expireAt(Date timestamp)
RExpirableexpireAt in interface RExpirabletimestamp - - expire datetrue if the timeout was set and false if notpublic RFuture<Boolean> expireAtAsync(Date timestamp)
RExpirableAsyncexpireAtAsync in interface RExpirableAsynctimestamp - - expire datetrue if the timeout was set and false if notpublic boolean clearExpire()
RExpirableclearExpire in interface RExpirabletrue if timeout was removed
false if object does not exist or does not have an associated timeoutpublic RFuture<Boolean> clearExpireAsync()
RExpirableAsyncclearExpireAsync in interface RExpirableAsynctrue if the timeout was cleared and false if notpublic long remainTimeToLive()
RExpirableremainTimeToLive in interface RExpirablepublic RFuture<Long> remainTimeToLiveAsync()
RExpirableAsyncremainTimeToLiveAsync in interface RExpirableAsyncprotected RFuture<Boolean> expireAsync(long timeToLive, TimeUnit timeUnit, String... keys)
Copyright © 2014–2020 Redisson. All rights reserved.