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) |
StreamMessageId |
add(K key,
V value,
int trimLen,
boolean trimStrict) |
StreamMessageId |
add(StreamAddArgs<K,V> args)
Appends a new entry/entries and returns generated Stream Message ID
Usage examples:
StreamMessageId id = stream.add(StreamAddArgs.entry(15, 37));
StreamMessageId id = stream.add(StreamAddArgs.entries(15, 37, 23, 43)
.trim(TrimStrategy.MAXLEN, 100)));
|
void |
add(StreamMessageId id,
K key,
V value) |
void |
add(StreamMessageId id,
K key,
V value,
int trimLen,
boolean trimStrict) |
void |
add(StreamMessageId id,
StreamAddArgs<K,V> args)
Appends a new entry/entries by specified Stream Message ID
Usage examples:
stream.add(id, StreamAddArgs.entry(15, 37));
stream.add(id, StreamAddArgs.entries(15, 37, 23, 43)
.trim(TrimStrategy.MAXLEN, 100)));
|
StreamMessageId |
addAll(Map<K,V> entries) |
StreamMessageId |
addAll(Map<K,V> entries,
int trimLen,
boolean trimStrict) |
void |
addAll(StreamMessageId id,
Map<K,V> entries) |
void |
addAll(StreamMessageId id,
Map<K,V> entries,
int trimLen,
boolean trimStrict) |
RFuture<StreamMessageId> |
addAllAsync(Map<K,V> entries) |
RFuture<StreamMessageId> |
addAllAsync(Map<K,V> entries,
int trimLen,
boolean trimStrict) |
RFuture<Void> |
addAllAsync(StreamMessageId id,
Map<K,V> entries) |
RFuture<Void> |
addAllAsync(StreamMessageId id,
Map<K,V> entries,
int trimLen,
boolean trimStrict) |
RFuture<StreamMessageId> |
addAsync(K key,
V value) |
RFuture<StreamMessageId> |
addAsync(K key,
V value,
int trimLen,
boolean trimStrict) |
RFuture<StreamMessageId> |
addAsync(StreamAddArgs<K,V> args)
Appends a new entry/entries and returns generated Stream Message ID
|
RFuture<Void> |
addAsync(StreamMessageId id,
K key,
V value) |
RFuture<Void> |
addAsync(StreamMessageId id,
K key,
V value,
int trimLen,
boolean trimStrict) |
RFuture<Void> |
addAsync(StreamMessageId id,
StreamAddArgs<K,V> args)
Appends a new entry/entries by specified Stream Message ID
|
<R> RFuture<R> |
addCustomAsync(StreamMessageId id,
StreamAddArgs<K,V> args) |
AutoClaimResult<K,V> |
autoClaim(String groupName,
String consumerName,
long idleTime,
TimeUnit idleTimeUnit,
StreamMessageId startId,
int count)
Transfers ownership of pending messages by id to a new consumer
by name if idle time of messages and startId are greater than defined value.
|
RFuture<AutoClaimResult<K,V>> |
autoClaimAsync(String groupName,
String consumerName,
long idleTime,
TimeUnit idleTimeUnit,
StreamMessageId startId,
int count)
Transfers ownership of pending messages by id to a new consumer
by name if idle time of messages and startId are greater than defined value.
|
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 |
createConsumer(String groupName,
String consumerName)
Creates consumer of the group by name.
|
RFuture<Void> |
createConsumerAsync(String groupName,
String consumerName)
Creates consumer of the group by name.
|
void |
createGroup(String groupName)
Creates consumer group by name.
|
void |
createGroup(String groupName,
StreamMessageId id)
Creates consumer group by name and Stream Message ID.
|
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(Instant instant)
Set an expire date for object.
|
boolean |
expire(long timeToLive,
TimeUnit timeUnit)
Set a timeout for object.
|
RFuture<Boolean> |
expireAsync(Instant instant)
Set an expire date 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)
Use
RExpirable.expire(Instant) instead |
boolean |
expireAt(long timestamp)
Use
RExpirable.expire(Instant) instead |
RFuture<Boolean> |
expireAtAsync(Date timestamp)
Use
RExpirableAsync.expireAsync(Instant) instead |
RFuture<Boolean> |
expireAtAsync(long timestamp)
Use
RExpirableAsync.expireAsync(Instant) instead |
protected RFuture<Boolean> |
expireAtAsync(long timestamp,
String... keys) |
FastAutoClaimResult |
fastAutoClaim(String groupName,
String consumerName,
long idleTime,
TimeUnit idleTimeUnit,
StreamMessageId startId,
int count)
Transfers ownership of pending messages by id to a new consumer
by name if idle time of messages and startId are greater than defined value.
|
RFuture<FastAutoClaimResult> |
fastAutoClaimAsync(String groupName,
String consumerName,
long idleTime,
TimeUnit idleTimeUnit,
StreamMessageId startId,
int count)
Transfers ownership of pending messages by id to a new consumer
by name if idle time of messages and startId are greater than defined value.
|
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.
|
List<PendingEntry> |
listPending(String groupName,
StreamMessageId startId,
StreamMessageId endId,
int count)
Returns list of common info about pending messages by group name.
|
List<PendingEntry> |
listPending(String groupName,
StreamMessageId startId,
StreamMessageId endId,
long idleTime,
TimeUnit idleTimeUnit,
int count)
Returns stream data of pending messages by group name.
|
List<PendingEntry> |
listPending(String groupName,
String consumerName,
StreamMessageId startId,
StreamMessageId endId,
int count)
Returns list of common info about pending messages by group and consumer name.
|
List<PendingEntry> |
listPending(String groupName,
String consumerName,
StreamMessageId startId,
StreamMessageId endId,
long idleTime,
TimeUnit idleTimeUnit,
int count)
Returns stream data of pending messages by group and customer name.
|
RFuture<List<PendingEntry>> |
listPendingAsync(String groupName,
StreamMessageId startId,
StreamMessageId endId,
int count)
Returns list of common info about pending messages by group name.
|
RFuture<List<PendingEntry>> |
listPendingAsync(String groupName,
StreamMessageId startId,
StreamMessageId endId,
long idleTime,
TimeUnit idleTimeUnit,
int count)
Returns list of common info about pending messages by group name.
|
RFuture<List<PendingEntry>> |
listPendingAsync(String groupName,
String consumerName,
StreamMessageId startId,
StreamMessageId endId,
int count)
Returns list of common info about pending messages by group and consumer name.
|
RFuture<List<PendingEntry>> |
listPendingAsync(String groupName,
String consumerName,
StreamMessageId startId,
StreamMessageId endId,
long idleTime,
TimeUnit idleTimeUnit,
int count)
Returns list of common info about pending messages by group and consumer name.
|
Map<StreamMessageId,Map<K,V>> |
pendingRange(String groupName,
StreamMessageId startId,
StreamMessageId endId,
int count)
Returns stream data of pending messages by group name.
|
Map<StreamMessageId,Map<K,V>> |
pendingRange(String groupName,
StreamMessageId startId,
StreamMessageId endId,
long idleTime,
TimeUnit idleTimeUnit,
int count)
Returns stream data of pending messages by group name.
|
Map<StreamMessageId,Map<K,V>> |
pendingRange(String groupName,
String consumerName,
StreamMessageId startId,
StreamMessageId endId,
int count)
Returns stream data of pending messages by group and customer name.
|
Map<StreamMessageId,Map<K,V>> |
pendingRange(String groupName,
String consumerName,
StreamMessageId startId,
StreamMessageId endId,
long idleTime,
TimeUnit idleTimeUnit,
int count)
Returns stream data of pending messages by group and customer name.
|
RFuture<Map<StreamMessageId,Map<K,V>>> |
pendingRangeAsync(String groupName,
StreamMessageId startId,
StreamMessageId endId,
int count)
Returns stream data of pending messages by group name.
|
RFuture<Map<StreamMessageId,Map<K,V>>> |
pendingRangeAsync(String groupName,
StreamMessageId startId,
StreamMessageId endId,
long idleTime,
TimeUnit idleTimeUnit,
int count)
Returns stream data of pending messages by group name.
|
RFuture<Map<StreamMessageId,Map<K,V>>> |
pendingRangeAsync(String groupName,
String consumerName,
StreamMessageId startId,
StreamMessageId endId,
int count)
Returns stream data of pending messages by group and customer name.
|
RFuture<Map<StreamMessageId,Map<K,V>>> |
pendingRangeAsync(String groupName,
String consumerName,
StreamMessageId startId,
StreamMessageId endId,
long idleTime,
TimeUnit idleTimeUnit,
int count)
Returns stream data of pending messages by group and customer name.
|
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) |
Map<String,Map<StreamMessageId,Map<K,V>>> |
read(int count,
long timeout,
TimeUnit unit,
StreamMessageId id,
Map<String,StreamMessageId> keyToId) |
Map<String,Map<StreamMessageId,Map<K,V>>> |
read(int count,
long timeout,
TimeUnit unit,
StreamMessageId id,
String key2,
StreamMessageId id2) |
Map<String,Map<StreamMessageId,Map<K,V>>> |
read(int count,
long timeout,
TimeUnit unit,
StreamMessageId id,
String key2,
StreamMessageId id2,
String key3,
StreamMessageId id3) |
Map<StreamMessageId,Map<K,V>> |
read(int count,
StreamMessageId... ids) |
Map<String,Map<StreamMessageId,Map<K,V>>> |
read(int count,
StreamMessageId id,
Map<String,StreamMessageId> keyToId) |
Map<String,Map<StreamMessageId,Map<K,V>>> |
read(int count,
StreamMessageId id,
String key2,
StreamMessageId id2) |
Map<String,Map<StreamMessageId,Map<K,V>>> |
read(int count,
StreamMessageId id,
String key2,
StreamMessageId id2,
String key3,
StreamMessageId id3) |
Map<StreamMessageId,Map<K,V>> |
read(long timeout,
TimeUnit unit,
StreamMessageId... ids) |
Map<String,Map<StreamMessageId,Map<K,V>>> |
read(long timeout,
TimeUnit unit,
StreamMessageId id,
Map<String,StreamMessageId> keyToId) |
Map<String,Map<StreamMessageId,Map<K,V>>> |
read(long timeout,
TimeUnit unit,
StreamMessageId id,
String key2,
StreamMessageId id2) |
Map<String,Map<StreamMessageId,Map<K,V>>> |
read(long timeout,
TimeUnit unit,
StreamMessageId id,
String key2,
StreamMessageId id2,
String key3,
StreamMessageId id3) |
Map<StreamMessageId,Map<K,V>> |
read(StreamMessageId... ids) |
Map<String,Map<StreamMessageId,Map<K,V>>> |
read(StreamMessageId id,
Map<String,StreamMessageId> keyToId) |
Map<String,Map<StreamMessageId,Map<K,V>>> |
read(StreamMessageId id,
String key2,
StreamMessageId id2) |
Map<String,Map<StreamMessageId,Map<K,V>>> |
read(StreamMessageId id,
String key2,
StreamMessageId id2,
String key3,
StreamMessageId id3) |
Map<String,Map<StreamMessageId,Map<K,V>>> |
read(StreamMultiReadArgs args)
Read stream data from multiple streams including current.
|
Map<StreamMessageId,Map<K,V>> |
read(StreamReadArgs args)
Read stream data from current stream only.
|
RFuture<Map<StreamMessageId,Map<K,V>>> |
readAsync(int count,
long timeout,
TimeUnit unit,
StreamMessageId... ids) |
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readAsync(int count,
long timeout,
TimeUnit unit,
StreamMessageId id,
Map<String,StreamMessageId> keyToId) |
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readAsync(int count,
long timeout,
TimeUnit unit,
StreamMessageId id,
String key2,
StreamMessageId id2) |
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) |
RFuture<Map<StreamMessageId,Map<K,V>>> |
readAsync(int count,
StreamMessageId... ids) |
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readAsync(int count,
StreamMessageId id,
Map<String,StreamMessageId> keyToId) |
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readAsync(int count,
StreamMessageId id,
String key2,
StreamMessageId id2) |
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readAsync(int count,
StreamMessageId id,
String key2,
StreamMessageId id2,
String key3,
StreamMessageId id3) |
RFuture<Map<StreamMessageId,Map<K,V>>> |
readAsync(long timeout,
TimeUnit unit,
StreamMessageId... ids) |
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readAsync(long timeout,
TimeUnit unit,
StreamMessageId id,
Map<String,StreamMessageId> keyToId) |
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readAsync(long timeout,
TimeUnit unit,
StreamMessageId id,
String key2,
StreamMessageId id2) |
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readAsync(long timeout,
TimeUnit unit,
StreamMessageId id,
String key2,
StreamMessageId id2,
String key3,
StreamMessageId id3) |
RFuture<Map<StreamMessageId,Map<K,V>>> |
readAsync(StreamMessageId... ids) |
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readAsync(StreamMessageId id,
Map<String,StreamMessageId> keyToId) |
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readAsync(StreamMessageId id,
String key2,
StreamMessageId id2) |
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readAsync(StreamMessageId id,
String key2,
StreamMessageId id2,
String key3,
StreamMessageId id3) |
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readAsync(StreamMultiReadArgs args)
Read stream data from multiple streams including current.
|
RFuture<Map<StreamMessageId,Map<K,V>>> |
readAsync(StreamReadArgs args)
Read stream data from current stream only.
|
Map<StreamMessageId,Map<K,V>> |
readGroup(String groupName,
String consumerName,
int count,
long timeout,
TimeUnit unit,
StreamMessageId... 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) |
Map<String,Map<StreamMessageId,Map<K,V>>> |
readGroup(String groupName,
String consumerName,
int count,
long timeout,
TimeUnit unit,
StreamMessageId id,
String key2,
StreamMessageId id2) |
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) |
Map<StreamMessageId,Map<K,V>> |
readGroup(String groupName,
String consumerName,
int count,
StreamMessageId... ids) |
Map<String,Map<StreamMessageId,Map<K,V>>> |
readGroup(String groupName,
String consumerName,
int count,
StreamMessageId id,
Map<String,StreamMessageId> keyToId) |
Map<String,Map<StreamMessageId,Map<K,V>>> |
readGroup(String groupName,
String consumerName,
int count,
StreamMessageId id,
String key2,
StreamMessageId id2) |
Map<String,Map<StreamMessageId,Map<K,V>>> |
readGroup(String groupName,
String consumerName,
int count,
StreamMessageId id,
String key2,
StreamMessageId id2,
String key3,
StreamMessageId id3) |
Map<StreamMessageId,Map<K,V>> |
readGroup(String groupName,
String consumerName,
long timeout,
TimeUnit unit,
StreamMessageId... ids) |
Map<String,Map<StreamMessageId,Map<K,V>>> |
readGroup(String groupName,
String consumerName,
long timeout,
TimeUnit unit,
StreamMessageId id,
Map<String,StreamMessageId> keyToId) |
Map<String,Map<StreamMessageId,Map<K,V>>> |
readGroup(String groupName,
String consumerName,
long timeout,
TimeUnit unit,
StreamMessageId id,
String key2,
StreamMessageId id2) |
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) |
Map<StreamMessageId,Map<K,V>> |
readGroup(String groupName,
String consumerName,
StreamMessageId... ids) |
Map<String,Map<StreamMessageId,Map<K,V>>> |
readGroup(String groupName,
String consumerName,
StreamMessageId id,
Map<String,StreamMessageId> keyToId) |
Map<String,Map<StreamMessageId,Map<K,V>>> |
readGroup(String groupName,
String consumerName,
StreamMessageId id,
String key2,
StreamMessageId id2) |
Map<String,Map<StreamMessageId,Map<K,V>>> |
readGroup(String groupName,
String consumerName,
StreamMessageId id,
String key2,
StreamMessageId id2,
String key3,
StreamMessageId id3) |
Map<String,Map<StreamMessageId,Map<K,V>>> |
readGroup(String groupName,
String consumerName,
StreamMultiReadGroupArgs args)
Read stream data from consumer group and multiple streams including current.
|
Map<StreamMessageId,Map<K,V>> |
readGroup(String groupName,
String consumerName,
StreamReadGroupArgs args)
Read stream data from consumer group and current stream only.
|
RFuture<Map<StreamMessageId,Map<K,V>>> |
readGroupAsync(String groupName,
String consumerName,
int count,
long timeout,
TimeUnit unit,
StreamMessageId... ids)
Read stream data from
groupName by consumerName and specified collection of Stream IDs. |
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readGroupAsync(String groupName,
String consumerName,
int count,
long timeout,
TimeUnit unit,
StreamMessageId id,
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. |
RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> |
readGroupAsync(String groupName,
String consumerName,
StreamMultiReadGroupArgs args)
Read stream data from consumer group and multiple streams including current.
|
RFuture<Map<StreamMessageId,Map<K,V>>> |
readGroupAsync(String groupName,
String consumerName,
StreamReadGroupArgs args)
Read stream data from consumer group and current stream only.
|
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 using MAXLEN strategy to specified size
|
long |
trim(TrimStrategy strategy,
int threshold)
Trims stream to specified size
|
RFuture<Long> |
trimAsync(int count)
Trims stream using MAXLEN strategy to specified size
|
RFuture<Long> |
trimAsync(TrimStrategy strategy,
int threshold)
Trims stream to specified size
|
long |
trimNonStrict(int count)
Trims stream using MAXLEN strategy to almost exact trimming threshold..
|
long |
trimNonStrict(TrimStrategy strategy,
int threshold)
Trims stream using almost exact trimming threshold.
|
long |
trimNonStrict(TrimStrategy strategy,
int threshold,
int limit)
Trims stream using almost exact trimming threshold up to limit.
|
RFuture<Long> |
trimNonStrictAsync(int count)
Trims stream using MAXLEN strategy to almost exact trimming threshold.
|
RFuture<Long> |
trimNonStrictAsync(TrimStrategy strategy,
int threshold)
Trims stream using almost exact trimming threshold.
|
RFuture<Long> |
trimNonStrictAsync(TrimStrategy strategy,
int threshold,
int limit)
Trims stream using almost exact trimming threshold up to limit.
|
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, getRawName, getRawName, isExists, isExistsAsync, migrate, migrateAsync, move, moveAsync, prefixName, removeListener, removeListenerAsync, removeListenersAsync, rename, renameAsync, renamenx, renamenxAsync, restore, restore, restoreAndReplace, restoreAndReplace, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, setName, sizeInMemory, sizeInMemoryAsync, sizeInMemoryAsync, sizeInMemoryAsync, suffixName, toSeconds, toStream, touch, touchAsync, unlink, unlinkAsyncclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearExpire, expire, expire, expireAt, expireAt, remainTimeToLiveaddListener, copy, delete, dump, getCodec, getIdleTime, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlinkclearExpireAsync, expireAsync, 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> 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 RFuture<List<PendingEntry>> listPendingAsync(String groupName, StreamMessageId startId, StreamMessageId endId, long idleTime, TimeUnit idleTimeUnit, int count)
RStreamAsync
StreamMessageId.MAX is used as max Stream Message ID
StreamMessageId.MIN is used as min Stream Message ID
Requires Redis 6.2.0 and higher.
listPendingAsync in interface RStreamAsync<K,V>groupName - - name of groupstartId - - start Stream Message IDendId - - end Stream Message IDidleTime - - minimum idle time of messagesidleTimeUnit - - idle time unitcount - - amount of messagesRStreamAsync.pendingRangeAsync(java.lang.String, org.redisson.api.StreamMessageId, org.redisson.api.StreamMessageId, int)public RFuture<List<PendingEntry>> listPendingAsync(String groupName, String consumerName, StreamMessageId startId, StreamMessageId endId, long idleTime, TimeUnit idleTimeUnit, int count)
RStreamAsync
StreamMessageId.MAX is used as max Stream Message ID
StreamMessageId.MIN is used as min Stream Message ID
Requires Redis 6.2.0 and higher.
listPendingAsync in interface RStreamAsync<K,V>groupName - - name of groupconsumerName - - name of consumerstartId - - start Stream Message IDendId - - end Stream Message IDidleTime - - minimum idle time of messagesidleTimeUnit - - idle time unitcount - - 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<PendingEntry> listPending(String groupName, StreamMessageId startId, StreamMessageId endId, long idleTime, TimeUnit idleTimeUnit, int count)
RStream
StreamMessageId.MAX is used as max Stream Message ID
StreamMessageId.MIN is used as min Stream Message ID
Requires Redis 6.2.0 and higher.
listPending in interface RStream<K,V>groupName - - name of groupstartId - - start Stream Message IDendId - - end Stream Message IDidleTime - - minimum idle time of messagesidleTimeUnit - - idle time unitcount - - amount of messagesRStreamAsync.listPendingAsync(java.lang.String, org.redisson.api.StreamMessageId, org.redisson.api.StreamMessageId, long, java.util.concurrent.TimeUnit, int)public List<PendingEntry> listPending(String groupName, String consumerName, StreamMessageId startId, StreamMessageId endId, long idleTime, TimeUnit idleTimeUnit, int count)
RStream
StreamMessageId.MAX is used as max Stream Message ID
StreamMessageId.MIN is used as min Stream Message ID
Requires Redis 6.2.0 and higher.
listPending in interface RStream<K,V>groupName - - name of groupconsumerName - - name of consumerstartId - - start Stream Message IDendId - - end Stream Message IDidleTime - - minimum idle time of messagesidleTimeUnit - - idle time unitcount - - amount of messagesRStreamAsync.listPendingAsync(java.lang.String, org.redisson.api.StreamMessageId, org.redisson.api.StreamMessageId, long, java.util.concurrent.TimeUnit, 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 AutoClaimResult<K,V> autoClaim(String groupName, String consumerName, long idleTime, TimeUnit idleTimeUnit, StreamMessageId startId, int count)
RStreampublic RFuture<AutoClaimResult<K,V>> autoClaimAsync(String groupName, String consumerName, long idleTime, TimeUnit idleTimeUnit, StreamMessageId startId, int count)
RStreamAsyncautoClaimAsync in interface RStreamAsync<K,V>groupName - - name of groupconsumerName - - name of consumeridleTime - - minimum idle time of messagesidleTimeUnit - - idle time unitstartId - - start Stream Message IDpublic FastAutoClaimResult fastAutoClaim(String groupName, String consumerName, long idleTime, TimeUnit idleTimeUnit, StreamMessageId startId, int count)
RStreamfastAutoClaim in interface RStream<K,V>groupName - - name of groupconsumerName - - name of consumeridleTime - - minimum idle time of messagesidleTimeUnit - - idle time unitstartId - - start Stream Message IDpublic Map<String,Map<StreamMessageId,Map<K,V>>> readGroup(String groupName, String consumerName, StreamMultiReadGroupArgs args)
RStreamUsage examples:
Map result = stream.read("group1", "consumer1", StreamMultiReadGroupArgs.greaterThan(id, "stream2", id2));
Map result = stream.read("group1", "consumer1", StreamMultiReadGroupArgs.greaterThan(id, "stream2", id2)
.count(100)
.timeout(Duration.ofSeconds(5))));
public Map<StreamMessageId,Map<K,V>> readGroup(String groupName, String consumerName, StreamReadGroupArgs args)
RStreamUsage examples:
Map result = stream.read("group1", "consumer1", StreamReadGroupArgs.greaterThan(id));
Map result = stream.read("group1", "consumer1", StreamReadGroupArgs.greaterThan(id)
.count(100)
.timeout(Duration.ofSeconds(5))));
public RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readGroupAsync(String groupName, String consumerName, StreamMultiReadGroupArgs args)
RStreamAsyncreadGroupAsync in interface RStreamAsync<K,V>args - - method arguments objectpublic RFuture<Map<StreamMessageId,Map<K,V>>> readGroupAsync(String groupName, String consumerName, StreamReadGroupArgs args)
RStreamAsyncreadGroupAsync in interface RStreamAsync<K,V>args - - method arguments objectpublic RFuture<FastAutoClaimResult> fastAutoClaimAsync(String groupName, String consumerName, long idleTime, TimeUnit idleTimeUnit, StreamMessageId startId, int count)
RStreamAsyncfastAutoClaimAsync in interface RStreamAsync<K,V>groupName - - name of groupconsumerName - - name of consumeridleTime - - minimum idle time of messagesidleTimeUnit - - idle time unitstartId - - start Stream Message IDpublic 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 Message 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)
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)
public 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)
public Map<String,Map<StreamMessageId,Map<K,V>>> readGroup(String groupName, String consumerName, long timeout, TimeUnit unit, StreamMessageId id, Map<String,StreamMessageId> keyToId)
public 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)
public Map<String,Map<StreamMessageId,Map<K,V>>> readGroup(String groupName, String consumerName, StreamMessageId id, String key2, StreamMessageId id2, String key3, StreamMessageId id3)
public Map<String,Map<StreamMessageId,Map<K,V>>> readGroup(String groupName, String consumerName, int count, StreamMessageId id, String key2, StreamMessageId id2)
public Map<String,Map<StreamMessageId,Map<K,V>>> readGroup(String groupName, String consumerName, int count, StreamMessageId id, String key2, StreamMessageId id2, String key3, StreamMessageId id3)
public Map<String,Map<StreamMessageId,Map<K,V>>> readGroup(String groupName, String consumerName, long timeout, TimeUnit unit, StreamMessageId id, String key2, StreamMessageId id2)
public 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)
public Map<String,Map<StreamMessageId,Map<K,V>>> readGroup(String groupName, String consumerName, int count, long timeout, TimeUnit unit, StreamMessageId id, String key2, StreamMessageId id2)
public 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)
public 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)
public Map<StreamMessageId,Map<K,V>> readGroup(String groupName, String consumerName, int count, StreamMessageId... ids)
public Map<StreamMessageId,Map<K,V>> readGroup(String groupName, String consumerName, long timeout, TimeUnit unit, StreamMessageId... ids)
public Map<StreamMessageId,Map<K,V>> readGroup(String groupName, String consumerName, int count, long timeout, TimeUnit unit, StreamMessageId... ids)
public StreamMessageId addAll(Map<K,V> entries)
public RFuture<StreamMessageId> addAllAsync(Map<K,V> entries)
addAllAsync in interface RStreamAsync<K,V>public void addAll(StreamMessageId id, Map<K,V> entries)
public RFuture<Void> addAllAsync(StreamMessageId id, Map<K,V> entries)
addAllAsync in interface RStreamAsync<K,V>public StreamMessageId addAll(Map<K,V> entries, int trimLen, boolean trimStrict)
public RFuture<StreamMessageId> addAllAsync(Map<K,V> entries, int trimLen, boolean trimStrict)
addAllAsync in interface RStreamAsync<K,V>public void addAll(StreamMessageId id, Map<K,V> entries, int trimLen, boolean trimStrict)
public RFuture<Void> addAllAsync(StreamMessageId id, Map<K,V> entries, int trimLen, boolean trimStrict)
addAllAsync in interface RStreamAsync<K,V>public long size()
RStreampublic RFuture<Long> sizeAsync()
RStreamAsyncsizeAsync in interface RStreamAsync<K,V>public Map<String,Map<StreamMessageId,Map<K,V>>> read(StreamMultiReadArgs args)
RStreamUsage examples:
Map result = stream.read(StreamMultiReadArgs.greaterThan(id, "stream2", id2));
Map result = stream.read(StreamMultiReadArgs.greaterThan(id, "stream2", id2)
.count(100)
.timeout(Duration.ofSeconds(5))));
public RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(StreamMultiReadArgs args)
RStreamAsyncreadAsync in interface RStreamAsync<K,V>args - - method arguments objectpublic Map<StreamMessageId,Map<K,V>> read(StreamReadArgs args)
RStreamUsage examples:
Map result = stream.read(StreamReadArgs.greaterThan(id));
Map result = stream.read(StreamReadArgs.greaterThan(id)
.count(100)
.timeout(Duration.ofSeconds(5))));
public RFuture<Map<StreamMessageId,Map<K,V>>> readAsync(StreamReadArgs args)
RStreamAsyncreadAsync in interface RStreamAsync<K,V>args - - method arguments objectpublic Map<String,Map<StreamMessageId,Map<K,V>>> read(StreamMessageId id, Map<String,StreamMessageId> keyToId)
public RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(StreamMessageId id, Map<String,StreamMessageId> keyToId)
readAsync in interface RStreamAsync<K,V>public Map<String,Map<StreamMessageId,Map<K,V>>> read(int count, StreamMessageId id, Map<String,StreamMessageId> keyToId)
public RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(int count, StreamMessageId id, Map<String,StreamMessageId> keyToId)
readAsync in interface RStreamAsync<K,V>public RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(int count, long timeout, TimeUnit unit, StreamMessageId id, String key2, StreamMessageId id2)
readAsync in interface RStreamAsync<K,V>public 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)
readAsync in interface RStreamAsync<K,V>public RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(long timeout, TimeUnit unit, StreamMessageId id, Map<String,StreamMessageId> keyToId)
readAsync in interface RStreamAsync<K,V>public Map<String,Map<StreamMessageId,Map<K,V>>> read(int count, long timeout, TimeUnit unit, StreamMessageId id, Map<String,StreamMessageId> keyToId)
public Map<String,Map<StreamMessageId,Map<K,V>>> read(long timeout, TimeUnit unit, StreamMessageId id, Map<String,StreamMessageId> keyToId)
public RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(StreamMessageId id, String key2, StreamMessageId id2)
readAsync in interface RStreamAsync<K,V>public RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(StreamMessageId id, String key2, StreamMessageId id2, String key3, StreamMessageId id3)
readAsync in interface RStreamAsync<K,V>public RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(int count, StreamMessageId id, String key2, StreamMessageId id2)
readAsync in interface RStreamAsync<K,V>public RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(int count, StreamMessageId id, String key2, StreamMessageId id2, String key3, StreamMessageId id3)
readAsync in interface RStreamAsync<K,V>public RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(long timeout, TimeUnit unit, StreamMessageId id, String key2, StreamMessageId id2)
readAsync in interface RStreamAsync<K,V>public RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(long timeout, TimeUnit unit, StreamMessageId id, String key2, StreamMessageId id2, String key3, StreamMessageId id3)
readAsync in interface RStreamAsync<K,V>public Map<String,Map<StreamMessageId,Map<K,V>>> read(StreamMessageId id, String key2, StreamMessageId id2)
public Map<String,Map<StreamMessageId,Map<K,V>>> read(StreamMessageId id, String key2, StreamMessageId id2, String key3, StreamMessageId id3)
public Map<String,Map<StreamMessageId,Map<K,V>>> read(int count, StreamMessageId id, String key2, StreamMessageId id2)
public Map<String,Map<StreamMessageId,Map<K,V>>> read(int count, StreamMessageId id, String key2, StreamMessageId id2, String key3, StreamMessageId id3)
public Map<String,Map<StreamMessageId,Map<K,V>>> read(long timeout, TimeUnit unit, StreamMessageId id, String key2, StreamMessageId id2)
public Map<String,Map<StreamMessageId,Map<K,V>>> read(long timeout, TimeUnit unit, StreamMessageId id, String key2, StreamMessageId id2, String key3, StreamMessageId id3)
public Map<String,Map<StreamMessageId,Map<K,V>>> read(int count, long timeout, TimeUnit unit, StreamMessageId id, String key2, StreamMessageId id2)
public Map<String,Map<StreamMessageId,Map<K,V>>> read(int count, long timeout, TimeUnit unit, StreamMessageId id, String key2, StreamMessageId id2, String key3, StreamMessageId id3)
public RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(int count, long timeout, TimeUnit unit, StreamMessageId id, Map<String,StreamMessageId> keyToId)
readAsync in interface RStreamAsync<K,V>public StreamMessageId add(StreamAddArgs<K,V> args)
RStreamUsage examples:
StreamMessageId id = stream.add(StreamAddArgs.entry(15, 37));
StreamMessageId id = stream.add(StreamAddArgs.entries(15, 37, 23, 43)
.trim(TrimStrategy.MAXLEN, 100)));
public void add(StreamMessageId id, StreamAddArgs<K,V> args)
RStreamUsage examples:
stream.add(id, StreamAddArgs.entry(15, 37));
stream.add(id, StreamAddArgs.entries(15, 37, 23, 43)
.trim(TrimStrategy.MAXLEN, 100)));
public RFuture<StreamMessageId> addAsync(StreamAddArgs<K,V> args)
RStreamAsyncaddAsync in interface RStreamAsync<K,V>args - - method arguments objectpublic RFuture<Void> addAsync(StreamMessageId id, StreamAddArgs<K,V> args)
RStreamAsyncaddAsync in interface RStreamAsync<K,V>id - - Stream Message IDargs - - method arguments objectpublic <R> RFuture<R> addCustomAsync(StreamMessageId id, StreamAddArgs<K,V> args)
public RFuture<StreamMessageId> addAsync(K key, V value)
addAsync in interface RStreamAsync<K,V>public RFuture<Void> addAsync(StreamMessageId id, K key, V value)
addAsync in interface RStreamAsync<K,V>public RFuture<StreamMessageId> addAsync(K key, V value, int trimLen, boolean trimStrict)
addAsync in interface RStreamAsync<K,V>public RFuture<Void> addAsync(StreamMessageId id, K key, V value, int trimLen, boolean trimStrict)
addAsync in interface RStreamAsync<K,V>public StreamMessageId add(K key, V value, int trimLen, boolean trimStrict)
public void add(StreamMessageId id, K key, V value, int trimLen, boolean trimStrict)
public RFuture<Map<StreamMessageId,Map<K,V>>> readAsync(int count, StreamMessageId... ids)
readAsync in interface RStreamAsync<K,V>public Map<StreamMessageId,Map<K,V>> read(int count, long timeout, TimeUnit unit, StreamMessageId... ids)
public Map<StreamMessageId,Map<K,V>> read(int count, StreamMessageId... ids)
public RFuture<Map<StreamMessageId,Map<K,V>>> readAsync(int count, long timeout, TimeUnit unit, StreamMessageId... ids)
readAsync in interface RStreamAsync<K,V>public 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)
readAsync in interface RStreamAsync<K,V>public RFuture<Map<StreamMessageId,Map<K,V>>> readAsync(long timeout, TimeUnit unit, StreamMessageId... ids)
readAsync in interface RStreamAsync<K,V>public 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)
public Map<StreamMessageId,Map<K,V>> read(long timeout, TimeUnit unit, StreamMessageId... ids)
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 long trim(TrimStrategy strategy, int threshold)
RStreampublic long trimNonStrict(TrimStrategy strategy, int threshold, int limit)
RStreamtrimNonStrict in interface RStream<K,V>strategy - - trim strategythreshold - - trim thresholdlimit - - trim limitpublic RFuture<Long> trimAsync(TrimStrategy strategy, int threshold)
RStreamAsynctrimAsync in interface RStreamAsync<K,V>strategy - - trim strategythreshold - - new size of streampublic RFuture<Long> trimNonStrictAsync(TrimStrategy strategy, int threshold, int limit)
RStreamAsynctrimNonStrictAsync in interface RStreamAsync<K,V>strategy - - trim strategythreshold - - trim thresholdlimit - - trim limitpublic long trimNonStrict(TrimStrategy strategy, int threshold)
RStreamtrimNonStrict in interface RStream<K,V>strategy - - trim strategythreshold - - trim thresholdpublic RFuture<Long> trimNonStrictAsync(TrimStrategy strategy, int threshold)
RStreamAsynctrimNonStrictAsync in interface RStreamAsync<K,V>strategy - - trim strategythreshold - - trim thresholdpublic 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 void createConsumer(String groupName, String consumerName)
RStreamRequires Redis 6.2.0 and higher.
createConsumer in interface RStream<K,V>groupName - - name of groupconsumerName - - name of consumerpublic RFuture<Void> createConsumerAsync(String groupName, String consumerName)
RStreamAsyncRequires Redis 6.2.0 and higher.
createConsumerAsync in interface RStreamAsync<K,V>groupName - - name of groupconsumerName - - name of consumerpublic 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, org.redisson.api.StreamMessageId, org.redisson.api.StreamMessageId, long, java.util.concurrent.TimeUnit, int)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, org.redisson.api.StreamMessageId, org.redisson.api.StreamMessageId, long, java.util.concurrent.TimeUnit, int)public RFuture<Map<StreamMessageId,Map<K,V>>> pendingRangeAsync(String groupName, StreamMessageId startId, StreamMessageId endId, long idleTime, TimeUnit idleTimeUnit, int count)
RStreamAsync
StreamMessageId.MAX is used as max Stream Message ID
StreamMessageId.MIN is used as min Stream Message ID
Requires Redis 6.2.0 and higher.
pendingRangeAsync in interface RStreamAsync<K,V>groupName - - name of groupstartId - - start Stream Message IDendId - - end Stream Message IDidleTime - - minimum idle time of messagesidleTimeUnit - - idle time unitcount - - amount of messagesRStreamAsync.listPendingAsync(java.lang.String, org.redisson.api.StreamMessageId, org.redisson.api.StreamMessageId, long, java.util.concurrent.TimeUnit, int)public RFuture<Map<StreamMessageId,Map<K,V>>> pendingRangeAsync(String groupName, String consumerName, StreamMessageId startId, StreamMessageId endId, long idleTime, TimeUnit idleTimeUnit, int count)
RStreamAsync
StreamMessageId.MAX is used as max Stream Message ID
StreamMessageId.MIN is used as min Stream Message ID
Requires Redis 6.2.0 and higher.
pendingRangeAsync in interface RStreamAsync<K,V>groupName - - name of groupconsumerName - - name of consumerstartId - - start Stream Message IDendId - - end Stream Message IDidleTime - - minimum idle time of messagesidleTimeUnit - - idle time unitcount - - amount of messagesRStreamAsync.listPendingAsync(java.lang.String, org.redisson.api.StreamMessageId, org.redisson.api.StreamMessageId, long, java.util.concurrent.TimeUnit, int)public Map<StreamMessageId,Map<K,V>> pendingRange(String groupName, StreamMessageId startId, StreamMessageId endId, long idleTime, TimeUnit idleTimeUnit, int count)
RStream
StreamMessageId.MAX is used as max Stream Message ID
StreamMessageId.MIN is used as min Stream Message ID
Requires Redis 6.2.0 and higher.
pendingRange in interface RStream<K,V>groupName - - name of groupstartId - - start Stream Message IDendId - - end Stream Message IDidleTime - - minimum idle time of messagesidleTimeUnit - - idle time unitcount - - amount of messagesRStreamAsync.listPendingAsync(java.lang.String, org.redisson.api.StreamMessageId, org.redisson.api.StreamMessageId, long, java.util.concurrent.TimeUnit, int)public Map<StreamMessageId,Map<K,V>> pendingRange(String groupName, String consumerName, StreamMessageId startId, StreamMessageId endId, long idleTime, TimeUnit idleTimeUnit, int count)
RStream
StreamMessageId.MAX is used as max Stream Message ID
StreamMessageId.MIN is used as min Stream Message ID
Requires Redis 6.2.0 and higher.
pendingRange in interface RStream<K,V>groupName - - name of groupconsumerName - - name of consumerstartId - - start Stream Message IDendId - - end Stream Message IDidleTime - - minimum idle time of messagesidleTimeUnit - - idle time unitcount - - amount of messagesRStreamAsync.listPendingAsync(java.lang.String, org.redisson.api.StreamMessageId, org.redisson.api.StreamMessageId, long, java.util.concurrent.TimeUnit, int)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, org.redisson.api.StreamMessageId, org.redisson.api.StreamMessageId, int)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, org.redisson.api.StreamMessageId, org.redisson.api.StreamMessageId, int)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)
RExpirableRExpirable.expire(Instant) insteadexpireAt in interface RExpirabletimestamp - - expire date in milliseconds (Unix timestamp)true if the timeout was set and false if notpublic RFuture<Boolean> expireAtAsync(long timestamp)
RExpirableAsyncRExpirableAsync.expireAsync(Instant) insteadexpireAtAsync in interface RExpirableAsynctimestamp - - expire date in milliseconds (Unix timestamp)true if the timeout was set and false if notpublic boolean expire(Instant instant)
RExpirableexpire in interface RExpirableinstant - - expire datetrue if the timeout was set and false if notpublic RFuture<Boolean> expireAsync(Instant instant)
RExpirableAsyncexpireAsync in interface RExpirableAsyncinstant - - expire datetrue if the timeout was set and false if notpublic boolean expireAt(Date timestamp)
RExpirableRExpirable.expire(Instant) insteadexpireAt in interface RExpirabletimestamp - - expire datetrue if the timeout was set and false if notpublic RFuture<Boolean> expireAtAsync(Date timestamp)
RExpirableAsyncRExpirableAsync.expireAsync(Instant) insteadexpireAtAsync 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–2021 Redisson. All rights reserved.