K
- key typeV
- value typeRExpirableAsync
, RObjectAsync
RStream<K,V>
RedissonStream
public interface RStreamAsync<K,V> extends RExpirableAsync
Requires Redis 5.0.0 and higher.
Modifier and Type | Method | Description |
---|---|---|
RFuture<StreamId> |
addAllAsync(Map<K,V> entries) |
Appends new entries and returns generated Stream ID
|
RFuture<StreamId> |
addAllAsync(Map<K,V> entries,
int trimLen,
boolean trimStrict) |
Appends new entries and returns generated Stream ID.
|
RFuture<Void> |
addAllAsync(StreamId id,
Map<K,V> entries) |
Appends new entries by specified Stream ID
|
RFuture<Void> |
addAllAsync(StreamId id,
Map<K,V> entries,
int trimLen,
boolean trimStrict) |
Appends new entries by specified Stream ID.
|
RFuture<StreamId> |
addAsync(K key,
V value) |
Appends a new entry and returns generated Stream ID
|
RFuture<StreamId> |
addAsync(K key,
V value,
int trimLen,
boolean trimStrict) |
Appends a new entry and returns generated Stream ID.
|
RFuture<Void> |
addAsync(StreamId id,
K key,
V value) |
Appends a new entry by specified Stream ID
|
RFuture<Void> |
addAsync(StreamId id,
K key,
V value,
int trimLen,
boolean trimStrict) |
Appends a new entry by specified Stream ID.
|
RFuture<Map<StreamId,Map<K,V>>> |
rangeAsync(int count,
StreamId startId,
StreamId endId) |
Read stream data in range by specified start Stream ID (included) and end Stream ID (included).
|
RFuture<Map<StreamId,Map<K,V>>> |
rangeAsync(StreamId startId,
StreamId endId) |
Read stream data in range by specified start Stream ID (included) and end Stream ID (included).
|
RFuture<Map<StreamId,Map<K,V>>> |
rangeReversedAsync(int count,
StreamId startId,
StreamId endId) |
Read stream data in reverse order in range by specified start Stream ID (included) and end Stream ID (included).
|
RFuture<Map<StreamId,Map<K,V>>> |
rangeReversedAsync(StreamId startId,
StreamId endId) |
Read stream data in reverse order in range by specified start Stream ID (included) and end Stream ID (included).
|
RFuture<Map<StreamId,Map<K,V>>> |
readAsync(int count,
long timeout,
TimeUnit unit,
StreamId... ids) |
Read stream data by specified collection of Stream IDs.
|
RFuture<Map<String,Map<StreamId,Map<K,V>>>> |
readAsync(int count,
long timeout,
TimeUnit unit,
StreamId id,
String name2,
StreamId id2) |
Read stream data by specified stream name including this stream.
|
RFuture<Map<String,Map<StreamId,Map<K,V>>>> |
readAsync(int count,
long timeout,
TimeUnit unit,
StreamId id,
String name2,
StreamId id2,
String name3,
StreamId id3) |
Read stream data by specified stream names including this stream.
|
RFuture<Map<String,Map<StreamId,Map<K,V>>>> |
readAsync(int count,
long timeout,
TimeUnit unit,
StreamId id,
Map<String,StreamId> nameToId) |
Read stream data by specified stream id mapped by name including this stream.
|
RFuture<Map<StreamId,Map<K,V>>> |
readAsync(int count,
StreamId... ids) |
Read stream data by specified collection of Stream IDs.
|
RFuture<Map<String,Map<StreamId,Map<K,V>>>> |
readAsync(int count,
StreamId id,
String name2,
StreamId id2) |
Read stream data by specified stream name including this stream.
|
RFuture<Map<String,Map<StreamId,Map<K,V>>>> |
readAsync(int count,
StreamId id,
String name2,
StreamId id2,
String name3,
StreamId id3) |
Read stream data by specified stream names including this stream.
|
RFuture<Map<String,Map<StreamId,Map<K,V>>>> |
readAsync(int count,
StreamId id,
Map<String,StreamId> nameToId) |
Read stream data by specified stream id mapped by name including this stream.
|
RFuture<Map<StreamId,Map<K,V>>> |
readAsync(long timeout,
TimeUnit unit,
StreamId... ids) |
Read stream data by specified collection of Stream IDs.
|
RFuture<Map<String,Map<StreamId,Map<K,V>>>> |
readAsync(long timeout,
TimeUnit unit,
StreamId id,
String name2,
StreamId id2) |
Read stream data by specified stream name including this stream.
|
RFuture<Map<String,Map<StreamId,Map<K,V>>>> |
readAsync(long timeout,
TimeUnit unit,
StreamId id,
String name2,
StreamId id2,
String name3,
StreamId id3) |
Read stream data by specified stream names including this stream.
|
RFuture<Map<String,Map<StreamId,Map<K,V>>>> |
readAsync(long timeout,
TimeUnit unit,
StreamId id,
Map<String,StreamId> nameToId) |
Read stream data by specified stream id mapped by name including this stream.
|
RFuture<Map<StreamId,Map<K,V>>> |
readAsync(StreamId... ids) |
Read stream data by specified collection of Stream IDs.
|
RFuture<Map<String,Map<StreamId,Map<K,V>>>> |
readAsync(StreamId id,
String name2,
StreamId id2) |
Read stream data by specified stream name including this stream.
|
RFuture<Map<String,Map<StreamId,Map<K,V>>>> |
readAsync(StreamId id,
String name2,
StreamId id2,
String name3,
StreamId id3) |
Read stream data by specified stream names including this stream.
|
RFuture<Map<String,Map<StreamId,Map<K,V>>>> |
readAsync(StreamId id,
Map<String,StreamId> nameToId) |
Read stream data by specified stream id mapped by name including this stream.
|
RFuture<Long> |
sizeAsync() |
Returns number of entries in stream
|
clearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsync
copyAsync, deleteAsync, dumpAsync, isExistsAsync, migrateAsync, moveAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, touchAsync, unlinkAsync
RFuture<StreamId> addAsync(K key, V value)
key
- - key of entryvalue
- - value of entryRFuture<Void> addAsync(StreamId id, K key, V value)
id
- - Stream IDkey
- - key of entryvalue
- - value of entryRFuture<StreamId> addAsync(K key, V value, int trimLen, boolean trimStrict)
trimLen
size.
If trimStrict
is false
then trims to few tens of entries more than specified length to trim.key
- - key of entryvalue
- - value of entrytrimLen
- - length to trimtrimStrict
- - if false
then trims to few tens of entries more than specified length to trimRFuture<Void> addAsync(StreamId id, K key, V value, int trimLen, boolean trimStrict)
trimLen
size.
If trimStrict
is false
then trims to few tens of entries more than specified length to trim.id
- - Stream IDkey
- - key of entryvalue
- - value of entrytrimLen
- - length to trimtrimStrict
- - if false
then trims to few tens of entries more than specified length to trimRFuture<StreamId> addAllAsync(Map<K,V> entries)
entries
- - entries to addRFuture<Void> addAllAsync(StreamId id, Map<K,V> entries)
id
- - Stream IDentries
- - entries to addRFuture<StreamId> addAllAsync(Map<K,V> entries, int trimLen, boolean trimStrict)
trimLen
size.
If trimStrict
is false
then trims to few tens of entries more than specified length to trim.entries
- - entries to addtrimLen
- - length to trimtrimStrict
- - if false
then trims to few tens of entries more than specified length to trimRFuture<Void> addAllAsync(StreamId id, Map<K,V> entries, int trimLen, boolean trimStrict)
trimLen
size.
If trimStrict
is false
then trims to few tens of entries more than specified length to trim.id
- - Stream IDentries
- - entries to addtrimLen
- - length to trimtrimStrict
- - if false
then trims to few tens of entries more than specified length to trimRFuture<Map<StreamId,Map<K,V>>> readAsync(StreamId... ids)
ids
- - collection of Stream IDsRFuture<Map<StreamId,Map<K,V>>> readAsync(int count, StreamId... ids)
count
- - stream data size limitids
- - collection of Stream IDsRFuture<Map<StreamId,Map<K,V>>> readAsync(long timeout, TimeUnit unit, StreamId... ids)
timeout
interval.timeout
- - time interval to wait for stream data availabilityunit
- - time interval unitids
- - collection of Stream IDsRFuture<Map<StreamId,Map<K,V>>> readAsync(int count, long timeout, TimeUnit unit, StreamId... ids)
timeout
interval.count
- - stream data size limittimeout
- - time interval to wait for stream data availabilityunit
- - time interval unitids
- - collection of Stream IDsRFuture<Map<String,Map<StreamId,Map<K,V>>>> readAsync(StreamId id, String name2, StreamId id2)
id
- - id of this streamname2
- - name of second streamid2
- - id of second streamRFuture<Map<String,Map<StreamId,Map<K,V>>>> readAsync(StreamId id, String name2, StreamId id2, String name3, StreamId id3)
id
- - id of this streamname2
- - name of second streamid2
- - id of second streamname3
- - name of third streamid3
- - id of third streamRFuture<Map<String,Map<StreamId,Map<K,V>>>> readAsync(StreamId id, Map<String,StreamId> nameToId)
id
- - id of this streamnameToId
- - stream id mapped by nameRFuture<Map<String,Map<StreamId,Map<K,V>>>> readAsync(int count, StreamId id, String name2, StreamId id2)
count
- - stream data size limitid
- - id of this streamname2
- - name of second streamid2
- - id of second streamRFuture<Map<String,Map<StreamId,Map<K,V>>>> readAsync(int count, StreamId id, String name2, StreamId id2, String name3, StreamId id3)
count
- - stream data size limitid
- - id of this streamname2
- - name of second streamid2
- - id of second streamname3
- - name of third streamid3
- - id of third streamRFuture<Map<String,Map<StreamId,Map<K,V>>>> readAsync(int count, StreamId id, Map<String,StreamId> nameToId)
count
- - stream data size limitid
- - id of this streamnameToId
- - stream id mapped by nameRFuture<Map<String,Map<StreamId,Map<K,V>>>> readAsync(long timeout, TimeUnit unit, StreamId id, String name2, StreamId id2)
timeout
interval.timeout
- - time interval to wait for stream data availabilityunit
- - time interval unitid
- - id of this streamname2
- - name of second streamid2
- - id of second streamRFuture<Map<String,Map<StreamId,Map<K,V>>>> readAsync(long timeout, TimeUnit unit, StreamId id, String name2, StreamId id2, String name3, StreamId id3)
timeout
interval.timeout
- - time interval to wait for stream data availabilityunit
- - time interval unitid
- - id of this streamname2
- - name of second streamid2
- - id of second streamname3
- - name of third streamid3
- - id of third streamRFuture<Map<String,Map<StreamId,Map<K,V>>>> readAsync(long timeout, TimeUnit unit, StreamId id, Map<String,StreamId> nameToId)
timeout
interval.timeout
- - time interval to wait for stream data availabilityunit
- - time interval unitid
- - id of this streamnameToId
- - stream id mapped by nameRFuture<Map<String,Map<StreamId,Map<K,V>>>> readAsync(int count, long timeout, TimeUnit unit, StreamId id, String name2, StreamId id2)
timeout
interval.count
- - stream data size limittimeout
- - time interval to wait for stream data availabilityunit
- - time interval unitid
- - id of this streamname2
- - name of second streamid2
- - id of second streamRFuture<Map<String,Map<StreamId,Map<K,V>>>> readAsync(int count, long timeout, TimeUnit unit, StreamId id, String name2, StreamId id2, String name3, StreamId id3)
timeout
interval.count
- - stream data size limittimeout
- - time interval to wait for stream data availabilityunit
- - time interval unitid
- - id of this streamname2
- - name of second streamid2
- - id of second streamname3
- - name of third streamid3
- - id of third streamRFuture<Map<String,Map<StreamId,Map<K,V>>>> readAsync(int count, long timeout, TimeUnit unit, StreamId id, Map<String,StreamId> nameToId)
timeout
interval.count
- - stream data size limittimeout
- - time interval to wait for stream data availabilityunit
- - time interval unitid
- - id of this streamnameToId
- - stream id mapped by nameRFuture<Map<StreamId,Map<K,V>>> rangeAsync(StreamId startId, StreamId endId)
startId
- - start Stream IDendId
- - end Stream IDRFuture<Map<StreamId,Map<K,V>>> rangeAsync(int count, StreamId startId, StreamId endId)
count
- - stream data size limitstartId
- - start Stream IDendId
- - end Stream IDRFuture<Map<StreamId,Map<K,V>>> rangeReversedAsync(StreamId startId, StreamId endId)
startId
- - start Stream IDendId
- - end Stream IDRFuture<Map<StreamId,Map<K,V>>> rangeReversedAsync(int count, StreamId startId, StreamId endId)
count
- - stream data size limitstartId
- - start Stream IDendId
- - end Stream IDCopyright © 2014–2018 The Redisson Project. All rights reserved.