Package org.redisson
Class RedissonStream<K,V>
- java.lang.Object
-
- org.redisson.RedissonObject
-
- org.redisson.RedissonStream<K,V>
-
- Type Parameters:
K
- key typeV
- value type
- All Implemented Interfaces:
RExpirable
,RExpirableAsync
,RObject
,RObjectAsync
,RStream<K,V>
,RStreamAsync<K,V>
public class RedissonStream<K,V> extends RedissonObject implements RStream<K,V>
- Author:
- Nikita Koksharov
-
-
Field Summary
-
Fields inherited from class org.redisson.RedissonObject
codec, commandExecutor
-
-
Constructor Summary
Constructors Constructor Description RedissonStream(Codec codec, CommandAsyncExecutor connectionManager, String name)
RedissonStream(CommandAsyncExecutor connectionManager, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
ack(String groupName, StreamMessageId... id)
Marks pending messages by group name and streamids
as correctly processed.RFuture<Long>
ackAsync(String groupName, StreamMessageId... ids)
Marks pending messages by group name and streamids
as correctly processed.StreamMessageId
add(K key, V value)
Appends a new entry and returns generated Stream Message IDStreamMessageId
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 IDvoid
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 IDStreamMessageId
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 IDvoid
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 IDRFuture<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 IDRFuture<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 IDRFuture<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 IDRFuture<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.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.boolean
expireAt(long timestamp)
Set an expire date for object.boolean
expireAt(Date timestamp)
Set an expire date for object.RFuture<Boolean>
expireAtAsync(long timestamp)
Set an expire date for object in async mode.RFuture<Boolean>
expireAtAsync(Date timestamp)
Set an expire date for object in async mode.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.PendingResult
listPending(String groupName)
Returns pending messages by group nameList<PendingEntry>
listPending(String groupName, String consumerName, StreamMessageId startId, StreamMessageId endId, int count)
Returns list of pending messages by group name and consumer name.List<PendingEntry>
listPending(String groupName, StreamMessageId startId, StreamMessageId endId, int count)
Returns list of pending messages by group name.RFuture<PendingResult>
listPendingAsync(String groupName)
Returns pending messages by group nameRFuture<List<PendingEntry>>
listPendingAsync(String groupName, String consumerName, StreamMessageId startId, StreamMessageId endId, int count)
Returns list of pending messages by group name and consumer name.RFuture<List<PendingEntry>>
listPendingAsync(String groupName, StreamMessageId startId, StreamMessageId endId, int count)
Returns list of pending messages by group name.Map<StreamMessageId,Map<K,V>>
range(int count, StreamMessageId startId, StreamMessageId endId)
Read 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)
Read 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)
Read 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)
Read 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)
Read 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)
Read 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)
Read 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)
Read 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, 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<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<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, 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<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<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, 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<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<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, 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.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.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, 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<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<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, 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<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<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, 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<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<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, 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.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.Map<StreamMessageId,Map<K,V>>
readGroup(String groupName, String consumerName, int count, long timeout, TimeUnit unit, StreamMessageId... ids)
Read stream data fromgroupName
byconsumerName
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, String key2, StreamMessageId id2)
Read stream data fromgroupName
byconsumerName
, 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 fromgroupName
byconsumerName
, 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, Map<String,StreamMessageId> keyToId)
Read stream data fromgroupName
byconsumerName
, 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 fromgroupName
byconsumerName
and specified collection of Stream Message IDs.Map<String,Map<StreamMessageId,Map<K,V>>>
readGroup(String groupName, String consumerName, int count, StreamMessageId id, String key2, StreamMessageId id2)
Read stream data fromgroupName
byconsumerName
, 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 fromgroupName
byconsumerName
, 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, Map<String,StreamMessageId> keyToId)
Read stream data fromgroupName
byconsumerName
, 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 fromgroupName
byconsumerName
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, String key2, StreamMessageId id2)
Read stream data fromgroupName
byconsumerName
, 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 fromgroupName
byconsumerName
, 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, Map<String,StreamMessageId> keyToId)
Read stream data fromgroupName
byconsumerName
, 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 fromgroupName
byconsumerName
and specified collection of Stream Message IDs.Map<String,Map<StreamMessageId,Map<K,V>>>
readGroup(String groupName, String consumerName, StreamMessageId id, String key2, StreamMessageId id2)
Read stream data fromgroupName
byconsumerName
, 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 fromgroupName
byconsumerName
, starting by specified message ids for this and other streams.Map<String,Map<StreamMessageId,Map<K,V>>>
readGroup(String groupName, String consumerName, StreamMessageId id, Map<String,StreamMessageId> keyToId)
Read stream data fromgroupName
byconsumerName
, 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 fromgroupName
byconsumerName
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, String key2, StreamMessageId id2)
Read stream data fromgroupName
byconsumerName
, 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 fromgroupName
byconsumerName
, 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, Map<String,StreamMessageId> keyToId)
RFuture<Map<StreamMessageId,Map<K,V>>>
readGroupAsync(String groupName, String consumerName, int count, StreamMessageId... ids)
Read stream data fromgroupName
byconsumerName
and specified collection of Stream IDs.RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>>
readGroupAsync(String groupName, String consumerName, int count, StreamMessageId id, String key2, StreamMessageId id2)
Read stream data fromgroupName
byconsumerName
, 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 fromgroupName
byconsumerName
, 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, Map<String,StreamMessageId> keyToId)
Read stream data fromgroupName
byconsumerName
, 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 fromgroupName
byconsumerName
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, String key2, StreamMessageId id2)
Read stream data fromgroupName
byconsumerName
, 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 fromgroupName
byconsumerName
, 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, Map<String,StreamMessageId> keyToId)
Read stream data fromgroupName
byconsumerName
, 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 fromgroupName
byconsumerName
and specified collection of Stream IDs.RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>>
readGroupAsync(String groupName, String consumerName, StreamMessageId id, String key2, StreamMessageId id2)
Read stream data fromgroupName
byconsumerName
, 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 fromgroupName
byconsumerName
, 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, Map<String,StreamMessageId> keyToId)
Read stream data fromgroupName
byconsumerName
, starting by specified message ids for this and other streams.long
remainTimeToLive()
Remaining time to live of Redisson object that has a timeoutRFuture<Long>
remainTimeToLiveAsync()
Remaining time to live of Redisson object that has a timeoutlong
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 streamRFuture<Long>
sizeAsync()
Returns number of entries in streamlong
trim(int count)
Trims stream to specified sizeRFuture<Long>
trimAsync(int count)
Trims stream to specified sizelong
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.-
Methods inherited from class org.redisson.RedissonObject
await, copy, copyAsync, delete, deleteAsync, dump, dumpAsync, encode, encode, encode, encodeMapKey, encodeMapKeys, encodeMapValue, encodeMapValues, get, getCodec, getName, getName, isExists, isExistsAsync, migrate, migrateAsync, move, moveAsync, prefixName, rename, renameAsync, renamenx, renamenxAsync, restore, restore, restoreAndReplace, restoreAndReplace, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemory, sizeInMemoryAsync, sizeInMemoryAsync, suffixName, toSeconds, touch, touchAsync, unlink, unlinkAsync
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.redisson.api.RExpirable
clearExpire, expire, expireAt, expireAt, remainTimeToLive
-
Methods inherited from interface org.redisson.api.RExpirableAsync
clearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsync
-
Methods inherited from interface org.redisson.api.RObject
copy, delete, dump, getCodec, getName, isExists, migrate, move, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlink
-
Methods inherited from interface org.redisson.api.RObjectAsync
copyAsync, deleteAsync, dumpAsync, isExistsAsync, migrateAsync, moveAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, touchAsync, unlinkAsync
-
-
-
-
Constructor Detail
-
RedissonStream
public RedissonStream(Codec codec, CommandAsyncExecutor connectionManager, String name)
-
RedissonStream
public RedissonStream(CommandAsyncExecutor connectionManager, String name)
-
-
Method Detail
-
checkKey
protected void checkKey(Object key)
-
checkValue
protected void checkValue(Object value)
-
createGroup
public void createGroup(String groupName)
Description copied from interface:RStream
Creates consumer group by name.- Specified by:
createGroup
in interfaceRStream<K,V>
- Parameters:
groupName
- - name of group
-
createGroupAsync
public RFuture<Void> createGroupAsync(String groupName)
Description copied from interface:RStreamAsync
Creates consumer group by name.- Specified by:
createGroupAsync
in interfaceRStreamAsync<K,V>
- Parameters:
groupName
- - name of group- Returns:
- void
-
createGroup
public void createGroup(String groupName, StreamMessageId id)
Description copied from interface:RStream
Creates consumer group by name and Stream Message ID. Only new messages after defined streamid
will be available for consumers of this group.StreamMessageId.NEWEST
is used for messages arrived since the moment of group creating- Specified by:
createGroup
in interfaceRStream<K,V>
- Parameters:
groupName
- - name of groupid
- - Stream Message ID
-
createGroupAsync
public RFuture<Void> createGroupAsync(String groupName, StreamMessageId id)
Description copied from interface:RStreamAsync
Creates consumer group by name and stream id. Only new messages after defined streamid
will be available for consumers of this group.StreamMessageId.NEWEST
is used for messages arrived since the moment of group creating- Specified by:
createGroupAsync
in interfaceRStreamAsync<K,V>
- Parameters:
groupName
- - name of groupid
- - stream id- Returns:
- void
-
ackAsync
public RFuture<Long> ackAsync(String groupName, StreamMessageId... ids)
Description copied from interface:RStreamAsync
Marks pending messages by group name and streamids
as correctly processed.- Specified by:
ackAsync
in interfaceRStreamAsync<K,V>
- Parameters:
groupName
- - name of groupids
- - stream ids- Returns:
- marked messages amount
-
ack
public long ack(String groupName, StreamMessageId... id)
Description copied from interface:RStream
Marks pending messages by group name and streamids
as correctly processed.
-
listPendingAsync
public RFuture<PendingResult> listPendingAsync(String groupName)
Description copied from interface:RStreamAsync
Returns pending messages by group name- Specified by:
listPendingAsync
in interfaceRStreamAsync<K,V>
- Parameters:
groupName
- - name of group- Returns:
- result object
-
listPending
public PendingResult listPending(String groupName)
Description copied from interface:RStream
Returns pending messages by group name- Specified by:
listPending
in interfaceRStream<K,V>
- Parameters:
groupName
- - name of group- Returns:
- result object
-
listPendingAsync
public RFuture<List<PendingEntry>> listPendingAsync(String groupName, String consumerName, StreamMessageId startId, StreamMessageId endId, int count)
Description copied from interface:RStreamAsync
Returns list of pending messages by group name and consumer name. Limited by start stream id and end stream id and count.StreamMessageId.MAX
is used as max stream idStreamMessageId.MIN
is used as min stream id- Specified by:
listPendingAsync
in interfaceRStreamAsync<K,V>
- Parameters:
groupName
- - name of groupconsumerName
- - name of consumerstartId
- - start stream idendId
- - end stream idcount
- - amount of messages- Returns:
- list
-
listPendingAsync
public RFuture<List<PendingEntry>> listPendingAsync(String groupName, StreamMessageId startId, StreamMessageId endId, int count)
Description copied from interface:RStreamAsync
Returns list of pending messages by group name. Limited by start stream id and end stream id and count.StreamMessageId.MAX
is used as max stream idStreamMessageId.MIN
is used as min stream id- Specified by:
listPendingAsync
in interfaceRStreamAsync<K,V>
- Parameters:
groupName
- - name of groupstartId
- - start stream idendId
- - end stream idcount
- - amount of messages- Returns:
- list
-
listPending
public List<PendingEntry> listPending(String groupName, StreamMessageId startId, StreamMessageId endId, int count)
Description copied from interface:RStream
Returns list of pending messages by group name. Limited by start Stream Message ID and end Stream Message ID and count.StreamMessageId.MAX
is used as max Stream Message IDStreamMessageId.MIN
is used as min Stream Message ID- Specified by:
listPending
in interfaceRStream<K,V>
- Parameters:
groupName
- - name of groupstartId
- - start Stream Message IDendId
- - end Stream Message IDcount
- - amount of messages- Returns:
- list
-
listPending
public List<PendingEntry> listPending(String groupName, String consumerName, StreamMessageId startId, StreamMessageId endId, int count)
Description copied from interface:RStream
Returns list of pending messages by group name and consumer name. Limited by start Stream Message ID and end Stream Message ID and count.StreamMessageId.MAX
is used as max Stream Message IDStreamMessageId.MIN
is used as min Stream Message ID- Specified by:
listPending
in interfaceRStream<K,V>
- Parameters:
groupName
- - name of groupconsumerName
- - name of consumerstartId
- - start Stream Message IDendId
- - end Stream Message IDcount
- - amount of messages- Returns:
- list
-
fastClaim
public List<StreamMessageId> fastClaim(String groupName, String consumerName, long idleTime, TimeUnit idleTimeUnit, StreamMessageId... ids)
Description copied from interface:RStream
Transfers ownership of pending messages by id to a new consumer by name if idle time of messages is greater than defined value.
-
fastClaimAsync
public RFuture<List<StreamMessageId>> fastClaimAsync(String groupName, String consumerName, long idleTime, TimeUnit idleTimeUnit, StreamMessageId... ids)
Description copied from interface:RStreamAsync
Transfers ownership of pending messages by id to a new consumer by name if idle time of messages is greater than defined value.- Specified by:
fastClaimAsync
in interfaceRStreamAsync<K,V>
- Parameters:
groupName
- - name of groupconsumerName
- - name of consumeridleTime
- - minimum idle time of messagesidleTimeUnit
- - idle time unitids
- - Stream Message IDs- Returns:
- list of Stream Message IDs
-
claimAsync
public RFuture<Map<StreamMessageId,Map<K,V>>> claimAsync(String groupName, String consumerName, long idleTime, TimeUnit idleTimeUnit, StreamMessageId... ids)
Description copied from interface:RStreamAsync
Transfers ownership of pending messages by id to a new consumer by name if idle time of messages is greater than defined value.- Specified by:
claimAsync
in interfaceRStreamAsync<K,V>
- Parameters:
groupName
- - name of groupconsumerName
- - name of consumeridleTime
- - minimum idle time of messagesidleTimeUnit
- - idle time unitids
- - stream ids- Returns:
- stream data mapped by Stream ID
-
claim
public Map<StreamMessageId,Map<K,V>> claim(String groupName, String consumerName, long idleTime, TimeUnit idleTimeUnit, StreamMessageId... ids)
Description copied from interface:RStream
Transfers ownership of pending messages by id to a new consumer by name if idle time of messages is greater than defined value.
-
readGroupAsync
public RFuture<Map<StreamMessageId,Map<K,V>>> readGroupAsync(String groupName, String consumerName, StreamMessageId... ids)
Description copied from interface:RStreamAsync
Read stream data fromgroupName
byconsumerName
and specified collection of Stream IDs.- Specified by:
readGroupAsync
in interfaceRStreamAsync<K,V>
- Parameters:
groupName
- - name of groupconsumerName
- - name of consumerids
- - collection of Stream IDs- Returns:
- stream data mapped by Stream ID
-
readGroupAsync
public RFuture<Map<StreamMessageId,Map<K,V>>> readGroupAsync(String groupName, String consumerName, int count, StreamMessageId... ids)
Description copied from interface:RStreamAsync
Read stream data fromgroupName
byconsumerName
and specified collection of Stream IDs.- Specified by:
readGroupAsync
in interfaceRStreamAsync<K,V>
- Parameters:
groupName
- - name of groupconsumerName
- - name of consumercount
- - stream data size limitids
- - collection of Stream IDs- Returns:
- stream data mapped by Stream ID
-
readGroupAsync
public RFuture<Map<StreamMessageId,Map<K,V>>> readGroupAsync(String groupName, String consumerName, long timeout, TimeUnit unit, StreamMessageId... ids)
Description copied from interface:RStreamAsync
Read stream data fromgroupName
byconsumerName
and specified collection of Stream IDs. Wait for stream data availability for specifiedtimeout
interval.- Specified by:
readGroupAsync
in interfaceRStreamAsync<K,V>
- Parameters:
groupName
- - name of groupconsumerName
- - name of consumertimeout
- - time interval to wait for stream data availabilityunit
- - time interval unitids
- - collection of Stream IDs- Returns:
- stream data mapped by Stream ID
-
readGroupAsync
public RFuture<Map<StreamMessageId,Map<K,V>>> readGroupAsync(String groupName, String consumerName, int count, long timeout, TimeUnit unit, StreamMessageId... ids)
Description copied from interface:RStreamAsync
Read stream data fromgroupName
byconsumerName
and specified collection of Stream IDs. Wait for stream data availability for specifiedtimeout
interval.- Specified by:
readGroupAsync
in interfaceRStreamAsync<K,V>
- Parameters:
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 IDs- Returns:
- stream data mapped by Stream ID
-
readGroup
public Map<String,Map<StreamMessageId,Map<K,V>>> readGroup(String groupName, String consumerName, StreamMessageId id, Map<String,StreamMessageId> keyToId)
Description copied from interface:RStream
Read stream data fromgroupName
byconsumerName
, starting by specified message ids for this and other streams.
-
readGroupAsync
public RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readGroupAsync(String groupName, String consumerName, StreamMessageId id, Map<String,StreamMessageId> keyToId)
Description copied from interface:RStreamAsync
Read stream data fromgroupName
byconsumerName
, starting by specified message ids for this and other streams.- Specified by:
readGroupAsync
in interfaceRStreamAsync<K,V>
- Parameters:
groupName
- - name of groupconsumerName
- - name of consumerid
- - starting message id for this streamkeyToId
- - Stream Message ID mapped by stream name- Returns:
- stream data mapped by key and Stream Message ID
-
readGroup
public Map<String,Map<StreamMessageId,Map<K,V>>> readGroup(String groupName, String consumerName, int count, StreamMessageId id, Map<String,StreamMessageId> keyToId)
Description copied from interface:RStream
Read stream data fromgroupName
byconsumerName
, starting by specified message ids for this and other streams.- Specified by:
readGroup
in interfaceRStream<K,V>
- Parameters:
groupName
- - name of groupconsumerName
- - name of consumercount
- - stream data size limitid
- - starting message id for this streamkeyToId
- - Stream Message ID mapped by stream name- Returns:
- stream data mapped by key and Stream Message ID
-
readGroupAsync
public RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readGroupAsync(String groupName, String consumerName, int count, StreamMessageId id, Map<String,StreamMessageId> keyToId)
Description copied from interface:RStreamAsync
Read stream data fromgroupName
byconsumerName
, starting by specified message ids for this and other streams.- Specified by:
readGroupAsync
in interfaceRStreamAsync<K,V>
- Parameters:
groupName
- - name of groupconsumerName
- - name of consumercount
- - stream data size limitid
- - starting message id for this streamkeyToId
- - Stream Message ID mapped by stream name- Returns:
- stream data mapped by key and Stream Message ID
-
readGroupAsync
public 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)
Description copied from interface:RStreamAsync
Read stream data fromgroupName
byconsumerName
, starting by specified message ids for this and other streams. Waits for the first stream data availability for specifiedtimeout
interval.- Specified by:
readGroupAsync
in interfaceRStreamAsync<K,V>
- Parameters:
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 stream- Returns:
- stream data mapped by key and Stream Message ID
-
readGroupAsync
public 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)
Description copied from interface:RStreamAsync
Read stream data fromgroupName
byconsumerName
, starting by specified message ids for this and other streams. Waits for the first stream data availability for specifiedtimeout
interval.- Specified by:
readGroupAsync
in interfaceRStreamAsync<K,V>
- Parameters:
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 stream- Returns:
- stream data mapped by key and Stream Message ID
-
readGroupAsync
public RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readGroupAsync(String groupName, String consumerName, long timeout, TimeUnit unit, StreamMessageId id, Map<String,StreamMessageId> keyToId)
Description copied from interface:RStreamAsync
Read stream data fromgroupName
byconsumerName
, starting by specified message ids for this and other streams. Waits for the first stream data availability for specifiedtimeout
interval.- Specified by:
readGroupAsync
in interfaceRStreamAsync<K,V>
- Parameters:
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 name- Returns:
- stream data mapped by key and Stream Message ID
-
readGroup
public Map<String,Map<StreamMessageId,Map<K,V>>> readGroup(String groupName, String consumerName, int count, long timeout, TimeUnit unit, StreamMessageId id, Map<String,StreamMessageId> keyToId)
Description copied from interface:RStream
Read stream data fromgroupName
byconsumerName
, starting by specified message ids for this and other streams. Waits for the first stream data availability for specifiedtimeout
interval.- Specified by:
readGroup
in interfaceRStream<K,V>
- Parameters:
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 name- Returns:
- stream data mapped by key and Stream Message ID
-
readGroup
public Map<String,Map<StreamMessageId,Map<K,V>>> readGroup(String groupName, String consumerName, long timeout, TimeUnit unit, StreamMessageId id, Map<String,StreamMessageId> keyToId)
Description copied from interface:RStream
Read stream data fromgroupName
byconsumerName
, starting by specified message ids for this and other streams. Waits for the first stream data availability for specifiedtimeout
interval.- Specified by:
readGroup
in interfaceRStream<K,V>
- Parameters:
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 name- Returns:
- stream data mapped by key and Stream Message ID
-
readGroupAsync
public RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readGroupAsync(String groupName, String consumerName, StreamMessageId id, String key2, StreamMessageId id2)
Description copied from interface:RStreamAsync
Read stream data fromgroupName
byconsumerName
, starting by specified message ids for this and other streams.- Specified by:
readGroupAsync
in interfaceRStreamAsync<K,V>
- Parameters:
groupName
- - name of groupconsumerName
- - name of consumerid
- - starting message id for this streamkey2
- - name of second streamid2
- - starting message id for second stream- Returns:
- stream data mapped by key and Stream Message ID
-
readGroupAsync
public RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readGroupAsync(String groupName, String consumerName, StreamMessageId id, String key2, StreamMessageId id2, String key3, StreamMessageId id3)
Description copied from interface:RStreamAsync
Read stream data fromgroupName
byconsumerName
, starting by specified message ids for this and other streams.- Specified by:
readGroupAsync
in interfaceRStreamAsync<K,V>
- Parameters:
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 stream- Returns:
- stream data mapped by key and Stream Message ID
-
readGroupAsync
public RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readGroupAsync(String groupName, String consumerName, int count, StreamMessageId id, String key2, StreamMessageId id2)
Description copied from interface:RStreamAsync
Read stream data fromgroupName
byconsumerName
, starting by specified message ids for this and other streams.- Specified by:
readGroupAsync
in interfaceRStreamAsync<K,V>
- Parameters:
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 stream- Returns:
- stream data mapped by key and Stream Message ID
-
readGroupAsync
public 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)
Description copied from interface:RStreamAsync
Read stream data fromgroupName
byconsumerName
, starting by specified message ids for this and other streams.- Specified by:
readGroupAsync
in interfaceRStreamAsync<K,V>
- Parameters:
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 stream- Returns:
- stream data mapped by key and Stream Message ID
-
readGroupAsync
public RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readGroupAsync(String groupName, String consumerName, long timeout, TimeUnit unit, StreamMessageId id, String key2, StreamMessageId id2)
Description copied from interface:RStreamAsync
Read stream data fromgroupName
byconsumerName
, starting by specified message ids for this and other streams. Waits for the first stream data availability for specifiedtimeout
interval.- Specified by:
readGroupAsync
in interfaceRStreamAsync<K,V>
- Parameters:
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 stream- Returns:
- stream data mapped by key and Stream Message ID
-
readGroupAsync
public 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)
Description copied from interface:RStreamAsync
Read stream data fromgroupName
byconsumerName
, starting by specified message ids for this and other streams. Waits for the first stream data availability for specifiedtimeout
interval.- Specified by:
readGroupAsync
in interfaceRStreamAsync<K,V>
- Parameters:
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 stream- Returns:
- stream data mapped by key and Stream Message ID
-
readGroup
public Map<String,Map<StreamMessageId,Map<K,V>>> readGroup(String groupName, String consumerName, StreamMessageId id, String key2, StreamMessageId id2)
Description copied from interface:RStream
Read stream data fromgroupName
byconsumerName
, starting by specified message ids for this and other streams.- Specified by:
readGroup
in interfaceRStream<K,V>
- Parameters:
groupName
- - name of groupconsumerName
- - name of consumerid
- - starting message id for this streamkey2
- - name of second streamid2
- - starting message id for second stream- Returns:
- stream data mapped by key and Stream Message ID
-
readGroup
public Map<String,Map<StreamMessageId,Map<K,V>>> readGroup(String groupName, String consumerName, StreamMessageId id, String key2, StreamMessageId id2, String key3, StreamMessageId id3)
Description copied from interface:RStream
Read stream data fromgroupName
byconsumerName
, starting by specified message ids for this and other streams.- Specified by:
readGroup
in interfaceRStream<K,V>
- Parameters:
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 stream- Returns:
- stream data mapped by key and Stream Message ID
-
readGroup
public Map<String,Map<StreamMessageId,Map<K,V>>> readGroup(String groupName, String consumerName, int count, StreamMessageId id, String key2, StreamMessageId id2)
Description copied from interface:RStream
Read stream data fromgroupName
byconsumerName
, starting by specified message ids for this and other streams.- Specified by:
readGroup
in interfaceRStream<K,V>
- Parameters:
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 stream- Returns:
- stream data mapped by key and Stream Message ID
-
readGroup
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)
Description copied from interface:RStream
Read stream data fromgroupName
byconsumerName
, starting by specified message ids for this and other streams.- Specified by:
readGroup
in interfaceRStream<K,V>
- Parameters:
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 stream- Returns:
- stream data mapped by key and Stream Message ID
-
readGroup
public Map<String,Map<StreamMessageId,Map<K,V>>> readGroup(String groupName, String consumerName, long timeout, TimeUnit unit, StreamMessageId id, String key2, StreamMessageId id2)
Description copied from interface:RStream
Read stream data fromgroupName
byconsumerName
, starting by specified message ids for this and other streams. Waits for the first stream data availability for specifiedtimeout
interval.- Specified by:
readGroup
in interfaceRStream<K,V>
- Parameters:
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 stream- Returns:
- stream data mapped by key and Stream Message ID
-
readGroup
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)
Description copied from interface:RStream
Read stream data fromgroupName
byconsumerName
, starting by specified message ids for this and other streams. Waits for the first stream data availability for specifiedtimeout
interval.- Specified by:
readGroup
in interfaceRStream<K,V>
- Parameters:
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 stream- Returns:
- stream data mapped by key and Stream Message ID
-
readGroup
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)
Description copied from interface:RStream
Read stream data fromgroupName
byconsumerName
, starting by specified message ids for this and other streams. Waits for the first stream data availability for specifiedtimeout
interval.- Specified by:
readGroup
in interfaceRStream<K,V>
- Parameters:
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 stream- Returns:
- stream data mapped by key and Stream Message ID
-
readGroup
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)
Description copied from interface:RStream
Read stream data fromgroupName
byconsumerName
, starting by specified message ids for this and other streams. Waits for the first stream data availability for specifiedtimeout
interval.- Specified by:
readGroup
in interfaceRStream<K,V>
- Parameters:
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 stream- Returns:
- stream data mapped by key and Stream Message ID
-
readGroupAsync
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)
-
readGroup
public Map<StreamMessageId,Map<K,V>> readGroup(String groupName, String consumerName, StreamMessageId... ids)
Description copied from interface:RStream
Read stream data fromgroupName
byconsumerName
and specified collection of Stream Message IDs.
-
readGroup
public Map<StreamMessageId,Map<K,V>> readGroup(String groupName, String consumerName, int count, StreamMessageId... ids)
Description copied from interface:RStream
Read stream data fromgroupName
byconsumerName
and specified collection of Stream Message IDs.
-
readGroup
public Map<StreamMessageId,Map<K,V>> readGroup(String groupName, String consumerName, long timeout, TimeUnit unit, StreamMessageId... ids)
Description copied from interface:RStream
Read stream data fromgroupName
byconsumerName
and specified collection of Stream Message IDs. Waits for stream data availability for specifiedtimeout
interval.- Specified by:
readGroup
in interfaceRStream<K,V>
- Parameters:
groupName
- - name of groupconsumerName
- - name of consumertimeout
- - time interval to wait for stream data availabilityunit
- - time interval unitids
- - collection of Stream Message IDs- Returns:
- stream data mapped by Stream Message ID
-
readGroup
public Map<StreamMessageId,Map<K,V>> readGroup(String groupName, String consumerName, int count, long timeout, TimeUnit unit, StreamMessageId... ids)
Description copied from interface:RStream
Read stream data fromgroupName
byconsumerName
and specified collection of Stream Message IDs. Waits for stream data availability for specifiedtimeout
interval.- Specified by:
readGroup
in interfaceRStream<K,V>
- Parameters:
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 IDs- Returns:
- stream data mapped by Stream Message ID
-
addAll
public StreamMessageId addAll(Map<K,V> entries)
Description copied from interface:RStream
Appends new entries and returns generated Stream Message ID
-
addAllAsync
public RFuture<StreamMessageId> addAllAsync(Map<K,V> entries)
Description copied from interface:RStreamAsync
Appends new entries and returns generated Stream ID- Specified by:
addAllAsync
in interfaceRStreamAsync<K,V>
- Parameters:
entries
- - entries to add- Returns:
- Stream ID
-
addAll
public void addAll(StreamMessageId id, Map<K,V> entries)
Description copied from interface:RStream
Appends new entries by specified Stream Message ID
-
addAllAsync
public RFuture<Void> addAllAsync(StreamMessageId id, Map<K,V> entries)
Description copied from interface:RStreamAsync
Appends new entries by specified Stream ID- Specified by:
addAllAsync
in interfaceRStreamAsync<K,V>
- Parameters:
id
- - Stream IDentries
- - entries to add- Returns:
- void
-
addAll
public StreamMessageId addAll(Map<K,V> entries, int trimLen, boolean trimStrict)
Description copied from interface:RStream
Appends new entries and returns generated Stream Message ID. Trims stream to a specifiedtrimLen
size. IftrimStrict
isfalse
then trims to few tens of entries more than specified length to trim.
-
addAllAsync
public RFuture<StreamMessageId> addAllAsync(Map<K,V> entries, int trimLen, boolean trimStrict)
Description copied from interface:RStreamAsync
Appends new entries and returns generated Stream ID. Trims stream to a specifiedtrimLen
size. IftrimStrict
isfalse
then trims to few tens of entries more than specified length to trim.- Specified by:
addAllAsync
in interfaceRStreamAsync<K,V>
- Parameters:
entries
- - entries to addtrimLen
- - length to trimtrimStrict
- - iffalse
then trims to few tens of entries more than specified length to trim- Returns:
- Stream ID
-
addAll
public void addAll(StreamMessageId id, Map<K,V> entries, int trimLen, boolean trimStrict)
Description copied from interface:RStream
Appends new entries by specified Stream Message ID. Trims stream to a specifiedtrimLen
size. IftrimStrict
isfalse
then trims to few tens of entries more than specified length to trim.
-
addAllAsync
public RFuture<Void> addAllAsync(StreamMessageId id, Map<K,V> entries, int trimLen, boolean trimStrict)
Description copied from interface:RStreamAsync
Appends new entries by specified Stream ID. Trims stream to a specifiedtrimLen
size. IftrimStrict
isfalse
then trims to few tens of entries more than specified length to trim.- Specified by:
addAllAsync
in interfaceRStreamAsync<K,V>
- Parameters:
id
- - Stream IDentries
- - entries to addtrimLen
- - length to trimtrimStrict
- - iffalse
then trims to few tens of entries more than specified length to trim- Returns:
- void
-
size
public long size()
Description copied from interface:RStream
Returns number of entries in stream
-
sizeAsync
public RFuture<Long> sizeAsync()
Description copied from interface:RStreamAsync
Returns number of entries in stream- Specified by:
sizeAsync
in interfaceRStreamAsync<K,V>
- Returns:
- size of stream
-
read
public Map<String,Map<StreamMessageId,Map<K,V>>> read(StreamMessageId id, Map<String,StreamMessageId> keyToId)
Description copied from interface:RStream
Read stream data by specified Stream Message ID mapped by name including this stream.
-
readAsync
public RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(StreamMessageId id, Map<String,StreamMessageId> keyToId)
Description copied from interface:RStreamAsync
Read stream data by specified stream id mapped by name including this stream.- Specified by:
readAsync
in interfaceRStreamAsync<K,V>
- Parameters:
id
- - id of this streamkeyToId
- - stream id mapped by name- Returns:
- stream data mapped by key and Stream ID
-
read
public Map<String,Map<StreamMessageId,Map<K,V>>> read(int count, StreamMessageId id, Map<String,StreamMessageId> keyToId)
Description copied from interface:RStream
Read stream data by specified Stream Message ID mapped by name including this stream.
-
readAsync
public RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(int count, StreamMessageId id, Map<String,StreamMessageId> keyToId)
Description copied from interface:RStreamAsync
Read stream data by specified stream id mapped by name including this stream.- Specified by:
readAsync
in interfaceRStreamAsync<K,V>
- Parameters:
count
- - stream data size limitid
- - id of this streamkeyToId
- - stream id mapped by name- Returns:
- stream data mapped by key and Stream ID
-
readAsync
public RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(int count, long timeout, TimeUnit unit, StreamMessageId id, String key2, StreamMessageId id2)
Description copied from interface:RStreamAsync
Read stream data by specified stream name including this stream. Wait for the first stream data availability for specifiedtimeout
interval.- Specified by:
readAsync
in interfaceRStreamAsync<K,V>
- Parameters:
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 stream- Returns:
- stream data mapped by key and Stream ID
-
readAsync
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)
Description copied from interface:RStreamAsync
Read stream data by specified stream names including this stream. Wait for the first stream data availability for specifiedtimeout
interval.- Specified by:
readAsync
in interfaceRStreamAsync<K,V>
- Parameters:
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 stream- Returns:
- stream data mapped by key and Stream ID
-
readAsync
public RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(long timeout, TimeUnit unit, StreamMessageId id, Map<String,StreamMessageId> keyToId)
Description copied from interface:RStreamAsync
Read stream data by specified stream id mapped by name including this stream. Wait for the first stream data availability for specifiedtimeout
interval.- Specified by:
readAsync
in interfaceRStreamAsync<K,V>
- Parameters:
timeout
- - time interval to wait for stream data availabilityunit
- - time interval unitid
- - id of this streamkeyToId
- - stream id mapped by name- Returns:
- stream data mapped by key and Stream ID
-
read
public Map<String,Map<StreamMessageId,Map<K,V>>> read(int count, long timeout, TimeUnit unit, StreamMessageId id, Map<String,StreamMessageId> keyToId)
Description copied from interface:RStream
Read stream data by specified Stream Message ID mapped by name including this stream. Wait for the first stream data availability for specifiedtimeout
interval.- Specified by:
read
in interfaceRStream<K,V>
- Parameters:
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 name- Returns:
- stream data mapped by key and Stream Message ID
-
read
public Map<String,Map<StreamMessageId,Map<K,V>>> read(long timeout, TimeUnit unit, StreamMessageId id, Map<String,StreamMessageId> keyToId)
Description copied from interface:RStream
Read stream data by specified Stream Message ID mapped by name including this stream. Wait for the first stream data availability for specifiedtimeout
interval.
-
readAsync
public RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(StreamMessageId id, String key2, StreamMessageId id2)
Description copied from interface:RStreamAsync
Read stream data by specified stream name including this stream.- Specified by:
readAsync
in interfaceRStreamAsync<K,V>
- Parameters:
id
- - id of this streamkey2
- - name of second streamid2
- - id of second stream- Returns:
- stream data mapped by key and Stream ID
-
readAsync
public RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(StreamMessageId id, String key2, StreamMessageId id2, String key3, StreamMessageId id3)
Description copied from interface:RStreamAsync
Read stream data by specified stream names including this stream.- Specified by:
readAsync
in interfaceRStreamAsync<K,V>
- Parameters:
id
- - id of this streamkey2
- - name of second streamid2
- - id of second streamkey3
- - name of third streamid3
- - id of third stream- Returns:
- stream data mapped by key and Stream ID
-
readAsync
public RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(int count, StreamMessageId id, String key2, StreamMessageId id2)
Description copied from interface:RStreamAsync
Read stream data by specified stream name including this stream.- Specified by:
readAsync
in interfaceRStreamAsync<K,V>
- Parameters:
count
- - stream data size limitid
- - id of this streamkey2
- - name of second streamid2
- - id of second stream- Returns:
- stream data mapped by key and Stream ID
-
readAsync
public RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(int count, StreamMessageId id, String key2, StreamMessageId id2, String key3, StreamMessageId id3)
Description copied from interface:RStreamAsync
Read stream data by specified stream names including this stream.- Specified by:
readAsync
in interfaceRStreamAsync<K,V>
- Parameters:
count
- - stream data size limitid
- - id of this streamkey2
- - name of second streamid2
- - id of second streamkey3
- - name of third streamid3
- - id of third stream- Returns:
- stream data mapped by key and Stream ID
-
readAsync
public RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(long timeout, TimeUnit unit, StreamMessageId id, String key2, StreamMessageId id2)
Description copied from interface:RStreamAsync
Read stream data by specified stream name including this stream. Wait for the first stream data availability for specifiedtimeout
interval.- Specified by:
readAsync
in interfaceRStreamAsync<K,V>
- Parameters:
timeout
- - time interval to wait for stream data availabilityunit
- - time interval unitid
- - id of this streamkey2
- - name of second streamid2
- - id of second stream- Returns:
- stream data mapped by key and Stream ID
-
readAsync
public RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(long timeout, TimeUnit unit, StreamMessageId id, String key2, StreamMessageId id2, String key3, StreamMessageId id3)
Description copied from interface:RStreamAsync
Read stream data by specified stream names including this stream. Wait for the first stream data availability for specifiedtimeout
interval.- Specified by:
readAsync
in interfaceRStreamAsync<K,V>
- Parameters:
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 stream- Returns:
- stream data mapped by key and Stream ID
-
read
public Map<String,Map<StreamMessageId,Map<K,V>>> read(StreamMessageId id, String key2, StreamMessageId id2)
Description copied from interface:RStream
Read stream data by specified stream name including this stream.
-
read
public Map<String,Map<StreamMessageId,Map<K,V>>> read(StreamMessageId id, String key2, StreamMessageId id2, String key3, StreamMessageId id3)
Description copied from interface:RStream
Read stream data by specified stream names including this stream.
-
read
public Map<String,Map<StreamMessageId,Map<K,V>>> read(int count, StreamMessageId id, String key2, StreamMessageId id2)
Description copied from interface:RStream
Read stream data by specified stream name including this stream.
-
read
public Map<String,Map<StreamMessageId,Map<K,V>>> read(int count, StreamMessageId id, String key2, StreamMessageId id2, String key3, StreamMessageId id3)
Description copied from interface:RStream
Read stream data by specified stream names including this stream.
-
read
public Map<String,Map<StreamMessageId,Map<K,V>>> read(long timeout, TimeUnit unit, StreamMessageId id, String key2, StreamMessageId id2)
Description copied from interface:RStream
Read stream data by specified stream name including this stream. Wait for the first stream data availability for specifiedtimeout
interval.
-
read
public Map<String,Map<StreamMessageId,Map<K,V>>> read(long timeout, TimeUnit unit, StreamMessageId id, String key2, StreamMessageId id2, String key3, StreamMessageId id3)
Description copied from interface:RStream
Read stream data by specified stream names including this stream. Wait for the first stream data availability for specifiedtimeout
interval.- Specified by:
read
in interfaceRStream<K,V>
- Parameters:
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 stream- Returns:
- stream data mapped by key and Stream Message ID
-
read
public Map<String,Map<StreamMessageId,Map<K,V>>> read(int count, long timeout, TimeUnit unit, StreamMessageId id, String key2, StreamMessageId id2)
Description copied from interface:RStream
Read stream data by specified stream name including this stream. Wait for the first stream data availability for specifiedtimeout
interval.- Specified by:
read
in interfaceRStream<K,V>
- Parameters:
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 stream- Returns:
- stream data mapped by key and Stream Message ID
-
read
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)
Description copied from interface:RStream
Read stream data by specified stream names including this stream. Wait for the first stream data availability for specifiedtimeout
interval.- Specified by:
read
in interfaceRStream<K,V>
- Parameters:
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 stream- Returns:
- stream data mapped by key and Stream Message ID
-
readAsync
public RFuture<Map<String,Map<StreamMessageId,Map<K,V>>>> readAsync(int count, long timeout, TimeUnit unit, StreamMessageId id, Map<String,StreamMessageId> keyToId)
Description copied from interface:RStreamAsync
Read stream data by specified stream id mapped by name including this stream. Wait for the first stream data availability for specifiedtimeout
interval.- Specified by:
readAsync
in interfaceRStreamAsync<K,V>
- Parameters:
count
- - stream data size limittimeout
- - time interval to wait for stream data availabilityunit
- - time interval unitid
- - id of this streamkeyToId
- - stream id mapped by name- Returns:
- stream data mapped by key and Stream ID
-
addAsync
public RFuture<StreamMessageId> addAsync(K key, V value)
Description copied from interface:RStreamAsync
Appends a new entry and returns generated Stream ID- Specified by:
addAsync
in interfaceRStreamAsync<K,V>
- Parameters:
key
- - key of entryvalue
- - value of entry- Returns:
- Stream ID
-
addAsync
public RFuture<Void> addAsync(StreamMessageId id, K key, V value)
Description copied from interface:RStreamAsync
Appends a new entry by specified Stream ID- Specified by:
addAsync
in interfaceRStreamAsync<K,V>
- Parameters:
id
- - Stream IDkey
- - key of entryvalue
- - value of entry- Returns:
- void
-
addAsync
public RFuture<StreamMessageId> addAsync(K key, V value, int trimLen, boolean trimStrict)
Description copied from interface:RStreamAsync
Appends a new entry and returns generated Stream ID. Trims stream to a specifiedtrimLen
size. IftrimStrict
isfalse
then trims to few tens of entries more than specified length to trim.- Specified by:
addAsync
in interfaceRStreamAsync<K,V>
- Parameters:
key
- - key of entryvalue
- - value of entrytrimLen
- - length to trimtrimStrict
- - iffalse
then trims to few tens of entries more than specified length to trim- Returns:
- Stream ID
-
addAsync
public RFuture<Void> addAsync(StreamMessageId id, K key, V value, int trimLen, boolean trimStrict)
Description copied from interface:RStreamAsync
Appends a new entry by specified Stream ID. Trims stream to a specifiedtrimLen
size. IftrimStrict
isfalse
then trims to few tens of entries more than specified length to trim.- Specified by:
addAsync
in interfaceRStreamAsync<K,V>
- Parameters:
id
- - Stream IDkey
- - key of entryvalue
- - value of entrytrimLen
- - length to trimtrimStrict
- - iffalse
then trims to few tens of entries more than specified length to trim- Returns:
- void
-
add
public StreamMessageId add(K key, V value)
Description copied from interface:RStream
Appends a new entry and returns generated Stream Message ID
-
add
public void add(StreamMessageId id, K key, V value)
Description copied from interface:RStream
Appends a new entry by specified Stream Message ID
-
add
public StreamMessageId add(K key, V value, int trimLen, boolean trimStrict)
Description copied from interface:RStream
Appends a new entry and returns generated Stream Message ID. Trims stream to a specifiedtrimLen
size. IftrimStrict
isfalse
then trims to few tens of entries more than specified length to trim.
-
add
public void add(StreamMessageId id, K key, V value, int trimLen, boolean trimStrict)
Description copied from interface:RStream
Appends a new entry by specified Stream Message ID. Trims stream to a specifiedtrimLen
size. IftrimStrict
isfalse
then trims to few tens of entries more than specified length to trim.
-
readAsync
public RFuture<Map<StreamMessageId,Map<K,V>>> readAsync(int count, StreamMessageId... ids)
Description copied from interface:RStreamAsync
Read stream data by specified collection of Stream IDs.- Specified by:
readAsync
in interfaceRStreamAsync<K,V>
- Parameters:
count
- - stream data size limitids
- - collection of Stream IDs- Returns:
- stream data mapped by Stream ID
-
read
public Map<StreamMessageId,Map<K,V>> read(int count, long timeout, TimeUnit unit, StreamMessageId... ids)
Description copied from interface:RStream
Read stream data by specified collection of Stream Message IDs. Wait for stream data availability for specifiedtimeout
interval.
-
read
public Map<StreamMessageId,Map<K,V>> read(int count, StreamMessageId... ids)
Description copied from interface:RStream
Read stream data by specified collection of Stream Message IDs.
-
readAsync
public RFuture<Map<StreamMessageId,Map<K,V>>> readAsync(int count, long timeout, TimeUnit unit, StreamMessageId... ids)
Description copied from interface:RStreamAsync
Read stream data by specified collection of Stream IDs. Wait for stream data availability for specifiedtimeout
interval.- Specified by:
readAsync
in interfaceRStreamAsync<K,V>
- Parameters:
count
- - stream data size limittimeout
- - time interval to wait for stream data availabilityunit
- - time interval unitids
- - collection of Stream IDs- Returns:
- stream data mapped by Stream ID
-
rangeAsync
public RFuture<Map<StreamMessageId,Map<K,V>>> rangeAsync(int count, StreamMessageId startId, StreamMessageId endId)
Description copied from interface:RStreamAsync
Read stream data in range by specified start Stream ID (included) and end Stream ID (included).- Specified by:
rangeAsync
in interfaceRStreamAsync<K,V>
- Parameters:
count
- - stream data size limitstartId
- - start Stream IDendId
- - end Stream ID- Returns:
- stream data mapped by Stream ID
-
range
public Map<StreamMessageId,Map<K,V>> range(int count, StreamMessageId startId, StreamMessageId endId)
Description copied from interface:RStream
Read stream data in range by specified start Stream Message ID (included) and end Stream Message ID (included).
-
rangeReversedAsync
public RFuture<Map<StreamMessageId,Map<K,V>>> rangeReversedAsync(int count, StreamMessageId startId, StreamMessageId endId)
Description copied from interface:RStreamAsync
Read stream data in reverse order in range by specified start Stream ID (included) and end Stream ID (included).- Specified by:
rangeReversedAsync
in interfaceRStreamAsync<K,V>
- Parameters:
count
- - stream data size limitstartId
- - start Stream IDendId
- - end Stream ID- Returns:
- stream data mapped by Stream ID
-
rangeReversed
public Map<StreamMessageId,Map<K,V>> rangeReversed(int count, StreamMessageId startId, StreamMessageId endId)
Description copied from interface:RStream
Read stream data in reverse order in range by specified start Stream Message ID (included) and end Stream Message ID (included).- Specified by:
rangeReversed
in interfaceRStream<K,V>
- Parameters:
count
- - stream data size limitstartId
- - start Stream Message IDendId
- - end Stream Message ID- Returns:
- stream data mapped by Stream Message ID
-
readAsync
public RFuture<Map<StreamMessageId,Map<K,V>>> readAsync(StreamMessageId... ids)
Description copied from interface:RStreamAsync
Read stream data by specified collection of Stream IDs.- Specified by:
readAsync
in interfaceRStreamAsync<K,V>
- Parameters:
ids
- - collection of Stream IDs- Returns:
- stream data mapped by Stream ID
-
readAsync
public RFuture<Map<StreamMessageId,Map<K,V>>> readAsync(long timeout, TimeUnit unit, StreamMessageId... ids)
Description copied from interface:RStreamAsync
Read stream data by specified collection of Stream IDs. Wait for stream data availability for specifiedtimeout
interval.- Specified by:
readAsync
in interfaceRStreamAsync<K,V>
- Parameters:
timeout
- - time interval to wait for stream data availabilityunit
- - time interval unitids
- - collection of Stream IDs- Returns:
- stream data mapped by Stream ID
-
rangeAsync
public RFuture<Map<StreamMessageId,Map<K,V>>> rangeAsync(StreamMessageId startId, StreamMessageId endId)
Description copied from interface:RStreamAsync
Read stream data in range by specified start Stream ID (included) and end Stream ID (included).- Specified by:
rangeAsync
in interfaceRStreamAsync<K,V>
- Parameters:
startId
- - start Stream IDendId
- - end Stream ID- Returns:
- stream data mapped by Stream ID
-
rangeReversedAsync
public RFuture<Map<StreamMessageId,Map<K,V>>> rangeReversedAsync(StreamMessageId startId, StreamMessageId endId)
Description copied from interface:RStreamAsync
Read stream data in reverse order in range by specified start Stream ID (included) and end Stream ID (included).- Specified by:
rangeReversedAsync
in interfaceRStreamAsync<K,V>
- Parameters:
startId
- - start Stream IDendId
- - end Stream ID- Returns:
- stream data mapped by Stream ID
-
read
public Map<StreamMessageId,Map<K,V>> read(StreamMessageId... ids)
Description copied from interface:RStream
Read stream data by specified collection of Stream Message IDs.
-
read
public Map<StreamMessageId,Map<K,V>> read(long timeout, TimeUnit unit, StreamMessageId... ids)
Description copied from interface:RStream
Read stream data by specified collection of Stream Message IDs. Wait for stream data availability for specifiedtimeout
interval.
-
range
public Map<StreamMessageId,Map<K,V>> range(StreamMessageId startId, StreamMessageId endId)
Description copied from interface:RStream
Read stream data in range by specified start Stream Message ID (included) and end Stream Message ID (included).
-
rangeReversed
public Map<StreamMessageId,Map<K,V>> rangeReversed(StreamMessageId startId, StreamMessageId endId)
Description copied from interface:RStream
Read stream data in reverse order in range by specified start Stream Message ID (included) and end Stream Message ID (included).- Specified by:
rangeReversed
in interfaceRStream<K,V>
- Parameters:
startId
- - start Stream Message IDendId
- - end Stream Message ID- Returns:
- stream data mapped by Stream Message ID
-
removeAsync
public RFuture<Long> removeAsync(StreamMessageId... ids)
Description copied from interface:RStreamAsync
Removes messages by id.- Specified by:
removeAsync
in interfaceRStreamAsync<K,V>
- Parameters:
ids
- - id of messages to remove- Returns:
- deleted messages amount
-
remove
public long remove(StreamMessageId... ids)
Description copied from interface:RStream
Removes messages by id.
-
trimAsync
public RFuture<Long> trimAsync(int count)
Description copied from interface:RStreamAsync
Trims stream to specified size- Specified by:
trimAsync
in interfaceRStreamAsync<K,V>
- Parameters:
count
- - new size of stream- Returns:
- number of deleted messages
-
trimNonStrictAsync
public RFuture<Long> trimNonStrictAsync(int count)
Description copied from interface:RStreamAsync
Trims stream to few tens of entries more than specified length to trim.- Specified by:
trimNonStrictAsync
in interfaceRStreamAsync<K,V>
- Parameters:
count
- - new size of stream- Returns:
- number of deleted messages
-
trim
public long trim(int count)
Description copied from interface:RStream
Trims stream to specified size
-
trimNonStrict
public long trimNonStrict(int count)
Description copied from interface:RStream
Trims stream to few tens of entries more than specified length to trim.- Specified by:
trimNonStrict
in interfaceRStream<K,V>
- Parameters:
count
- - new size of stream- Returns:
- number of deleted messages
-
removeGroupAsync
public RFuture<Void> removeGroupAsync(String groupName)
Description copied from interface:RStreamAsync
Removes group by name.- Specified by:
removeGroupAsync
in interfaceRStreamAsync<K,V>
- Parameters:
groupName
- - name of group- Returns:
- void
-
removeGroup
public void removeGroup(String groupName)
Description copied from interface:RStream
Removes group by name.- Specified by:
removeGroup
in interfaceRStream<K,V>
- Parameters:
groupName
- - name of group
-
removeConsumerAsync
public RFuture<Long> removeConsumerAsync(String groupName, String consumerName)
Description copied from interface:RStreamAsync
Removes consumer of the group by name.- Specified by:
removeConsumerAsync
in interfaceRStreamAsync<K,V>
- Parameters:
groupName
- - name of groupconsumerName
- - name of consumer- Returns:
- number of pending messages owned by consumer
-
removeConsumer
public long removeConsumer(String groupName, String consumerName)
Description copied from interface:RStream
Removes consumer of the group by name.- Specified by:
removeConsumer
in interfaceRStream<K,V>
- Parameters:
groupName
- - name of groupconsumerName
- - name of consumer- Returns:
- number of pending messages owned by consumer
-
updateGroupMessageIdAsync
public RFuture<Void> updateGroupMessageIdAsync(String groupName, StreamMessageId id)
Description copied from interface:RStreamAsync
Updates next message id delivered to consumers.- Specified by:
updateGroupMessageIdAsync
in interfaceRStreamAsync<K,V>
- Parameters:
groupName
- - name of groupid
- - Stream Message ID- Returns:
- void
-
updateGroupMessageId
public void updateGroupMessageId(String groupName, StreamMessageId id)
Description copied from interface:RStream
Updates next message id delivered to consumers.- Specified by:
updateGroupMessageId
in interfaceRStream<K,V>
- Parameters:
groupName
- - name of groupid
- - Stream Message ID
-
expire
public boolean expire(long timeToLive, TimeUnit timeUnit)
Description copied from interface:RExpirable
Set a timeout for object. After the timeout has expired, the key will automatically be deleted.- Specified by:
expire
in interfaceRExpirable
- Parameters:
timeToLive
- - timeout before object will be deletedtimeUnit
- - timeout time unit- Returns:
true
if the timeout was set andfalse
if not
-
expireAsync
public RFuture<Boolean> expireAsync(long timeToLive, TimeUnit timeUnit)
Description copied from interface:RExpirableAsync
Set a timeout for object in async mode. After the timeout has expired, the key will automatically be deleted.- Specified by:
expireAsync
in interfaceRExpirableAsync
- Parameters:
timeToLive
- - timeout before object will be deletedtimeUnit
- - timeout time unit- Returns:
true
if the timeout was set andfalse
if not
-
expireAt
public boolean expireAt(long timestamp)
Description copied from interface:RExpirable
Set an expire date for object. When expire date comes the key will automatically be deleted.- Specified by:
expireAt
in interfaceRExpirable
- Parameters:
timestamp
- - expire date in milliseconds (Unix timestamp)- Returns:
true
if the timeout was set andfalse
if not
-
expireAtAsync
public RFuture<Boolean> expireAtAsync(long timestamp)
Description copied from interface:RExpirableAsync
Set an expire date for object in async mode. When expire date comes the key will automatically be deleted.- Specified by:
expireAtAsync
in interfaceRExpirableAsync
- Parameters:
timestamp
- - expire date in milliseconds (Unix timestamp)- Returns:
true
if the timeout was set andfalse
if not
-
expireAt
public boolean expireAt(Date timestamp)
Description copied from interface:RExpirable
Set an expire date for object. When expire date comes the key will automatically be deleted.- Specified by:
expireAt
in interfaceRExpirable
- Parameters:
timestamp
- - expire date- Returns:
true
if the timeout was set andfalse
if not
-
expireAtAsync
public RFuture<Boolean> expireAtAsync(Date timestamp)
Description copied from interface:RExpirableAsync
Set an expire date for object in async mode. When expire date comes the key will automatically be deleted.- Specified by:
expireAtAsync
in interfaceRExpirableAsync
- Parameters:
timestamp
- - expire date- Returns:
true
if the timeout was set andfalse
if not
-
clearExpire
public boolean clearExpire()
Description copied from interface:RExpirable
Clear an expire timeout or expire date for object.- Specified by:
clearExpire
in interfaceRExpirable
- Returns:
true
if timeout was removedfalse
if object does not exist or does not have an associated timeout
-
clearExpireAsync
public RFuture<Boolean> clearExpireAsync()
Description copied from interface:RExpirableAsync
Clear an expire timeout or expire date for object in async mode. Object will not be deleted.- Specified by:
clearExpireAsync
in interfaceRExpirableAsync
- Returns:
true
if the timeout was cleared andfalse
if not
-
remainTimeToLive
public long remainTimeToLive()
Description copied from interface:RExpirable
Remaining time to live of Redisson object that has a timeout- Specified by:
remainTimeToLive
in interfaceRExpirable
- Returns:
- time in milliseconds -2 if the key does not exist. -1 if the key exists but has no associated expire.
-
remainTimeToLiveAsync
public RFuture<Long> remainTimeToLiveAsync()
Description copied from interface:RExpirableAsync
Remaining time to live of Redisson object that has a timeout- Specified by:
remainTimeToLiveAsync
in interfaceRExpirableAsync
- Returns:
- time in milliseconds -2 if the key does not exist. -1 if the key exists but has no associated expire.
-
-