Package org.redisson
Class RedissonTimeSeries<V,L>
java.lang.Object
org.redisson.RedissonObject
org.redisson.RedissonTimeSeries<V,L>
- All Implemented Interfaces:
Iterable<V>,RDestroyable,RExpirable,RExpirableAsync,RObject,RObjectAsync,RTimeSeries<V,,L> RTimeSeriesAsync<V,L>
- Author:
- Nikita Koksharov
-
Field Summary
Fields inherited from class org.redisson.RedissonObject
codec, commandExecutor, name -
Constructor Summary
ConstructorsConstructorDescriptionRedissonTimeSeries(Codec codec, EvictionScheduler evictionScheduler, CommandAsyncExecutor connectionManager, String name) RedissonTimeSeries(EvictionScheduler evictionScheduler, CommandAsyncExecutor connectionManager, String name) -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds element to this time-series collection by specifiedtimestamp.voidAdds element to this time-series collection by specifiedtimestamp.voidAdds element withlabelto this time-series collection by specifiedtimestamp.voidAdds element withlabelto this time-series collection by specifiedtimestamp.voidaddAll(Collection<TimeSeriesEntry<V, L>> entries) Adds all entries collection to this time-series collection.voidaddAll(Collection<TimeSeriesEntry<V, L>> entries, Duration timeToLive) Adds all time series entries collection to this time-series collection.voidAdds all elements contained in the specified map to this time-series collection.voidAdds all elements contained in the specified map to this time-series collection.addAllAsync(Collection<TimeSeriesEntry<V, L>> entries) Adds all entries collection to this time-series collection.addAllAsync(Collection<TimeSeriesEntry<V, L>> entries, Duration timeToLive) Adds all time series entries collection to this time-series collection.addAllAsync(Map<Long, V> objects) Adds all elements contained in the specified map to this time-series collection.addAllAsync(Map<Long, V> objects, long timeToLive, TimeUnit timeUnit) Adds all elements contained in the specified map to this time-series collection.Adds element to this time-series collection by specifiedtimestamp.Adds element to this time-series collection by specifiedtimestamp.Adds element withlabelto this time-series collection by specifiedtimestamp.Adds element withlabelto this time-series collection by specifiedtimestamp.booleanClear an expire timeout or expire date for object.Clear an expire timeout or expire date for object in async mode.clearExpireAsync(String... keys) Delete object in async modevoiddestroy()Destroys object when it's not necessary anymore.entryRange(long startTimestamp, long endTimestamp) Returns ordered entries of this time-series collection within timestamp range.entryRange(long startTimestamp, long endTimestamp, int limit) Returns ordered entries of this time-series collection within timestamp range.entryRangeAsync(long startTimestamp, long endTimestamp) Returns ordered entries of this time-series collection within timestamp range.entryRangeAsync(long startTimestamp, long endTimestamp, int limit) Returns ordered entries of this time-series collection within timestamp range.entryRangeReversed(long startTimestamp, long endTimestamp) Returns entries of this time-series collection in reverse order within timestamp range.entryRangeReversed(long startTimestamp, long endTimestamp, int limit) Returns entries of this time-series collection in reverse order within timestamp range.entryRangeReversedAsync(long startTimestamp, long endTimestamp) Returns entries of this time-series collection in reverse order within timestamp range.entryRangeReversedAsync(long startTimestamp, long endTimestamp, int limit) Returns entries of this time-series collection in reverse order within timestamp range.booleanUseRExpirable.expire(Duration)insteadbooleanSets a timeout for this object.booleanSets an expiration date for this object.expireAsync(long timeToLive, TimeUnit timeUnit) UseRExpirableAsync.expireAsync(Duration)insteadexpireAsync(long timeToLive, TimeUnit timeUnit, String param, String... keys) expireAsync(Duration duration) Set a timeout for object.expireAsync(Instant instant) Set an expire date for object.booleanexpireAt(long timestamp) UseRExpirable.expire(Instant)insteadbooleanUseRExpirable.expire(Instant)insteadexpireAtAsync(long timestamp) UseRExpirableAsync.expireAsync(Instant)insteadexpireAtAsync(long timestamp, String param, String... keys) expireAtAsync(Date timestamp) UseRExpirableAsync.expireAsync(Instant)insteadbooleanexpireIfGreater(Duration duration) Sets a timeout for this object only if it's greater than timeout set before.booleanexpireIfGreater(Instant time) Sets an expiration date for this object only if it's greater than expiration date set before.expireIfGreaterAsync(Duration duration) Sets a timeout for this object only if it's greater than timeout set before.expireIfGreaterAsync(Instant time) Sets an expiration date for this object only if it's greater than expiration date set before.booleanexpireIfLess(Duration duration) Sets a timeout for this object only if it's less than timeout set before.booleanexpireIfLess(Instant time) Sets an expiration date for this object only if it's less than expiration date set before.expireIfLessAsync(Duration duration) Sets a timeout for this object only if it's less than timeout set before.expireIfLessAsync(Instant time) Sets an expiration date for this object only if it's less than expiration date set before.booleanexpireIfNotSet(Duration duration) Sets a timeout for this object only if it hasn't been set before.booleanexpireIfNotSet(Instant time) Sets an expiration date for this object only if it hasn't been set before.expireIfNotSetAsync(Duration duration) Sets a timeout for this object only if it hasn't been set before.expireIfNotSetAsync(Instant time) Sets an expiration date for this object only if it hasn't been set before.booleanexpireIfSet(Duration duration) Sets a timeout for this object only if it has been already set.booleanexpireIfSet(Instant time) Sets an expiration date for this object only if it has been already set.expireIfSetAsync(Duration duration) Sets a timeout for this object only if it has been already set.expireIfSetAsync(Instant time) Sets an expiration date for this object only if it has been already set.first()Returns the head element ornullif this time-series collection is empty.first(int count) Returns the head elements of this time-series collection.Returns the head element ornullif this time-series collection is empty.firstAsync(int count) Returns the head elements of this time-series collection.firstEntries(int count) Returns the head entries of this time-series collection.firstEntriesAsync(int count) Returns the head entries of this time-series collection.Returns the head entry ornullif this time-series collection is empty.Returns the head entry ornullif this time-series collection is empty.Returns timestamp of the head timestamp ornullif this time-series collection is empty.Returns timestamp of the head timestamp ornullif this time-series collection is empty.get(long timestamp) Returns object by specifiedtimestampornullif it doesn't exist.getAndRemove(long timestamp) Removes and returns object by specifiedtimestamp.getAndRemoveAsync(long timestamp) Removes and returns object by specifiedtimestamp.getAndRemoveEntry(long timestamp) Removes and returns entry by specifiedtimestamp.getAndRemoveEntryAsync(long timestamp) Removes and returns entry by specifiedtimestamp.getAsync(long timestamp) Returns object by specifiedtimestampornullif it doesn't exist.getEntry(long timestamp) Returns time series entry by specifiedtimestampornullif it doesn't exist.getEntryAsync(long timestamp) Returns time series entry by specifiedtimestampornullif it doesn't exist.longExpiration time of Redisson object that has a timeoutExpiration time of Redisson object that has a timeoutiterator()iterator(int count) Returns an iterator over elements in this time-series collection.last()Returns the tail element ornullif this time-series collection is empty.last(int count) Returns the tail elements of this time-series collection.Returns the tail element ornullif this time-series collection is empty.lastAsync(int count) Returns the tail elements of this time-series collection.lastEntries(int count) Returns the tail entries of this time-series collection.lastEntriesAsync(int count) Returns the tail entries of this time-series collection.Returns the tail entry ornullif this time-series collection is empty.Returns the tail entry ornullif this time-series collection is empty.Returns timestamp of the tail element ornullif this time-series collection is empty.Returns timestamp of the tail element ornullif this time-series collection is empty.Removes and returns the head element ornullif this time-series collection is empty.pollFirst(int count) Removes and returns the head elementsRemoves and returns the head element ornullif this time-series collection is empty.pollFirstAsync(int count) Removes and returns the head elementspollFirstEntries(int count) Removes and returns head entriespollFirstEntriesAsync(int count) Removes and returns head entriesRemoves and returns head entry ornullif this time-series collection is empty.Removes and returns head entry ornullif this time-series collection is empty.pollLast()Removes and returns the tail element ornullif this time-series collection is empty.pollLast(int count) Removes and returns the tail elements ornullif this time-series collection is empty.Removes and returns the tail element ornullif this time-series collection is empty.pollLastAsync(int count) Removes and returns the tail elements ornullif this time-series collection is empty.pollLastEntries(int count) Removes and returns tail entriespollLastEntriesAsync(int count) Removes and returns tail entriesRemoves and returns the tail entry ornullif this time-series collection is empty.Removes and returns the tail entry ornullif this time-series collection is empty.range(long startTimestamp, long endTimestamp) Returns ordered elements of this time-series collection within timestamp range.range(long startTimestamp, long endTimestamp, int limit) Returns ordered elements of this time-series collection within timestamp range.rangeAsync(long startTimestamp, long endTimestamp) Returns ordered elements of this time-series collection within timestamp range.rangeAsync(long startTimestamp, long endTimestamp, int limit) Returns ordered elements of this time-series collection within timestamp range.rangeReversed(long startTimestamp, long endTimestamp) Returns elements of this time-series collection in reverse order within timestamp range.rangeReversed(long startTimestamp, long endTimestamp, int limit) Returns elements of this time-series collection in reverse order within timestamp range.rangeReversedAsync(long startTimestamp, long endTimestamp) Returns elements of this time-series collection in reverse order within timestamp range.rangeReversedAsync(long startTimestamp, long endTimestamp, int limit) Returns elements of this time-series collection in reverse order within timestamp range.longRemaining time to live of Redisson object that has a timeoutRemaining time to live of Redisson object that has a timeoutbooleanremove(long timestamp) Removes object by specifiedtimestamp.removeAsync(long timestamp) Removes object by specifiedtimestamp.intremoveRange(long startTimestamp, long endTimestamp) Removes values within timestamp range.removeRangeAsync(long startTimestamp, long endTimestamp) Removes values within timestamp range.scanIterator(String name, RedisClient client, long startPos, int count) scanIteratorAsync(String name, RedisClient client, long startPos, int count) intsize()Returns size of this set.Returns size of this set.Returns bytes amount used by object in Redis memory.stream()Returns stream of elements in this time-series collection.stream(int count) Returns stream of elements in this time-series collection.Methods inherited from class org.redisson.RedissonObject
addListener, addListener, addListenerAsync, addListenerAsync, copy, copyAsync, delete, deleteAsync, dump, dumpAsync, encode, encode, encode, encode, encodeMapKey, encodeMapKey, encodeMapKeys, encodeMapValue, encodeMapValues, get, getCodec, getIdleTime, getIdleTimeAsync, getLockByMapKey, getLockByValue, getName, getRawName, getRawName, isExists, isExistsAsync, migrate, migrateAsync, move, moveAsync, prefixName, removeListener, removeListenerAsync, rename, renameAsync, renamenx, renamenxAsync, restore, restore, restoreAndReplace, restoreAndReplace, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, setName, sizeInMemory, sizeInMemoryAsync, sizeInMemoryAsync, suffixName, toSeconds, toStream, touch, touchAsync, unlink, unlinkAsyncMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.redisson.api.RExpirable
clearExpire, expire, expire, expire, expireAt, expireAt, expireIfGreater, expireIfGreater, expireIfLess, expireIfLess, expireIfNotSet, expireIfNotSet, expireIfSet, expireIfSet, getExpireTime, remainTimeToLiveMethods inherited from interface org.redisson.api.RExpirableAsync
expireAsync, expireAsync, expireAsync, expireAtAsync, expireAtAsync, expireIfGreaterAsync, expireIfGreaterAsync, expireIfLessAsync, expireIfLessAsync, expireIfNotSetAsync, expireIfNotSetAsync, expireIfSetAsync, expireIfSetAsync, getExpireTimeAsync, remainTimeToLiveAsyncMethods inherited from interface org.redisson.api.RObject
addListener, copy, delete, dump, getCodec, getIdleTime, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlinkMethods inherited from interface org.redisson.api.RObjectAsync
addListenerAsync, copyAsync, dumpAsync, getIdleTimeAsync, isExistsAsync, migrateAsync, moveAsync, removeListenerAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, touchAsync, unlinkAsync
-
Constructor Details
-
RedissonTimeSeries
public RedissonTimeSeries(EvictionScheduler evictionScheduler, CommandAsyncExecutor connectionManager, String name) -
RedissonTimeSeries
public RedissonTimeSeries(Codec codec, EvictionScheduler evictionScheduler, CommandAsyncExecutor connectionManager, String name)
-
-
Method Details
-
add
Description copied from interface:RTimeSeriesAdds element to this time-series collection by specifiedtimestamp.- Specified by:
addin interfaceRTimeSeries<V,L> - Parameters:
timestamp- object timestampvalue- object itself
-
addAsync
Description copied from interface:RTimeSeriesAsyncAdds element to this time-series collection by specifiedtimestamp.- Specified by:
addAsyncin interfaceRTimeSeriesAsync<V,L> - Parameters:
timestamp- object timestampobject- object itself- Returns:
- void
-
add
Description copied from interface:RTimeSeriesAdds element withlabelto this time-series collection by specifiedtimestamp.- Specified by:
addin interfaceRTimeSeries<V,L> - Parameters:
timestamp- object timestampobject- object itselflabel- object label
-
addAsync
Description copied from interface:RTimeSeriesAsyncAdds element withlabelto this time-series collection by specifiedtimestamp.- Specified by:
addAsyncin interfaceRTimeSeriesAsync<V,L> - Parameters:
timestamp- object timestampobject- object itselflabel- object label
-
addAll
Description copied from interface:RTimeSeriesAdds all elements contained in the specified map to this time-series collection. Map contains of timestamp mapped by object.- Specified by:
addAllin interfaceRTimeSeries<V,L> - Parameters:
objects- - map of elements to add
-
add
Description copied from interface:RTimeSeriesAdds element to this time-series collection by specifiedtimestamp.- Specified by:
addin interfaceRTimeSeries<V,L> - Parameters:
timestamp- - object timestampvalue- - object itselftimeToLive- - time to live intervaltimeUnit- - unit of time to live interval
-
addAsync
Description copied from interface:RTimeSeriesAsyncAdds element to this time-series collection by specifiedtimestamp.- Specified by:
addAsyncin interfaceRTimeSeriesAsync<V,L> - Parameters:
timestamp- - object timestampobject- - object itselftimeToLive- - time to live intervaltimeUnit- - unit of time to live interval- Returns:
- void
-
add
Description copied from interface:RTimeSeriesAdds element withlabelto this time-series collection by specifiedtimestamp.- Specified by:
addin interfaceRTimeSeries<V,L> - Parameters:
timestamp- object timestampobject- object itselflabel- object labeltimeToLive- time to live interval
-
addAsync
Description copied from interface:RTimeSeriesAsyncAdds element withlabelto this time-series collection by specifiedtimestamp.- Specified by:
addAsyncin interfaceRTimeSeriesAsync<V,L> - Parameters:
timestamp- object timestampobject- object itselflabel- object labeltimeToLive- time to live interval- Returns:
- void
-
addAll
Description copied from interface:RTimeSeriesAdds all elements contained in the specified map to this time-series collection. Map contains of timestamp mapped by object.- Specified by:
addAllin interfaceRTimeSeries<V,L> - Parameters:
objects- - map of elements to addtimeToLive- - time to live intervaltimeUnit- - unit of time to live interval
-
addAllAsync
Description copied from interface:RTimeSeriesAsyncAdds all elements contained in the specified map to this time-series collection. Map contains of timestamp mapped by object.- Specified by:
addAllAsyncin interfaceRTimeSeriesAsync<V,L> - Parameters:
objects- - map of elements to add- Returns:
- void
-
addAllAsync
Description copied from interface:RTimeSeriesAsyncAdds all elements contained in the specified map to this time-series collection. Map contains of timestamp mapped by object.- Specified by:
addAllAsyncin interfaceRTimeSeriesAsync<V,L> - Parameters:
objects- - map of elements to addtimeToLive- - time to live intervaltimeUnit- - unit of time to live interval- Returns:
- void
-
addAll
Description copied from interface:RTimeSeriesAdds all entries collection to this time-series collection.- Specified by:
addAllin interfaceRTimeSeries<V,L> - Parameters:
entries- collection of time series entries
-
addAllAsync
Description copied from interface:RTimeSeriesAsyncAdds all entries collection to this time-series collection.- Specified by:
addAllAsyncin interfaceRTimeSeriesAsync<V,L> - Parameters:
entries- collection of time series entries- Returns:
- void
-
addAll
Description copied from interface:RTimeSeriesAdds all time series entries collection to this time-series collection. Specified time to live interval applied to all entries defined in collection.- Specified by:
addAllin interfaceRTimeSeries<V,L> - Parameters:
entries- collection of time series entriestimeToLive- time to live interval
-
addAllAsync
Description copied from interface:RTimeSeriesAsyncAdds all time series entries collection to this time-series collection. Specified time to live interval applied to all entries defined in collection.- Specified by:
addAllAsyncin interfaceRTimeSeriesAsync<V,L> - Parameters:
entries- collection of time series entriestimeToLive- time to live interval- Returns:
- void
-
size
public int size()Description copied from interface:RTimeSeriesReturns size of this set.- Specified by:
sizein interfaceRTimeSeries<V,L> - Returns:
- size
-
sizeAsync
Description copied from interface:RTimeSeriesAsyncReturns size of this set.- Specified by:
sizeAsyncin interfaceRTimeSeriesAsync<V,L> - Returns:
- size
-
get
Description copied from interface:RTimeSeriesReturns object by specifiedtimestampornullif it doesn't exist.- Specified by:
getin interfaceRTimeSeries<V,L> - Parameters:
timestamp- - object timestamp- Returns:
- object
-
getAsync
Description copied from interface:RTimeSeriesAsyncReturns object by specifiedtimestampornullif it doesn't exist.- Specified by:
getAsyncin interfaceRTimeSeriesAsync<V,L> - Parameters:
timestamp- - object timestamp- Returns:
- object
-
getEntry
Description copied from interface:RTimeSeriesReturns time series entry by specifiedtimestampornullif it doesn't exist.- Specified by:
getEntryin interfaceRTimeSeries<V,L> - Parameters:
timestamp- object timestamp- Returns:
- time series entry
-
getEntryAsync
Description copied from interface:RTimeSeriesAsyncReturns time series entry by specifiedtimestampornullif it doesn't exist.- Specified by:
getEntryAsyncin interfaceRTimeSeriesAsync<V,L> - Parameters:
timestamp- object timestamp- Returns:
- time series entry
-
remove
public boolean remove(long timestamp) Description copied from interface:RTimeSeriesRemoves object by specifiedtimestamp.- Specified by:
removein interfaceRTimeSeries<V,L> - Parameters:
timestamp- - object timestamp- Returns:
trueif an element was removed as a result of this call
-
removeAsync
Description copied from interface:RTimeSeriesAsyncRemoves object by specifiedtimestamp.- Specified by:
removeAsyncin interfaceRTimeSeriesAsync<V,L> - Parameters:
timestamp- - object timestamp- Returns:
trueif an element was removed as a result of this call
-
getAndRemove
Description copied from interface:RTimeSeriesRemoves and returns object by specifiedtimestamp.- Specified by:
getAndRemovein interfaceRTimeSeries<V,L> - Parameters:
timestamp- - object timestamp- Returns:
- object or
nullif it doesn't exist
-
getAndRemoveAsync
Description copied from interface:RTimeSeriesAsyncRemoves and returns object by specifiedtimestamp.- Specified by:
getAndRemoveAsyncin interfaceRTimeSeriesAsync<V,L> - Parameters:
timestamp- - object timestamp- Returns:
- object or
nullif it doesn't exist
-
getAndRemoveEntry
Description copied from interface:RTimeSeriesRemoves and returns entry by specifiedtimestamp.- Specified by:
getAndRemoveEntryin interfaceRTimeSeries<V,L> - Parameters:
timestamp- - object timestamp- Returns:
- entry or
nullif it doesn't exist
-
getAndRemoveEntryAsync
Description copied from interface:RTimeSeriesAsyncRemoves and returns entry by specifiedtimestamp.- Specified by:
getAndRemoveEntryAsyncin interfaceRTimeSeriesAsync<V,L> - Parameters:
timestamp- - object timestamp- Returns:
- entry or
nullif it doesn't exist
-
last
Description copied from interface:RTimeSeriesReturns the tail element ornullif this time-series collection is empty.- Specified by:
lastin interfaceRTimeSeries<V,L> - Returns:
- the tail element or
nullif this time-series collection is empty
-
lastAsync
Description copied from interface:RTimeSeriesAsyncReturns the tail element ornullif this time-series collection is empty.- Specified by:
lastAsyncin interfaceRTimeSeriesAsync<V,L> - Returns:
- the tail element or
nullif this time-series collection is empty
-
lastEntry
Description copied from interface:RTimeSeriesReturns the tail entry ornullif this time-series collection is empty.- Specified by:
lastEntryin interfaceRTimeSeries<V,L> - Returns:
- the tail entry or
nullif this time-series collection is empty
-
lastEntryAsync
Description copied from interface:RTimeSeriesAsyncReturns the tail entry ornullif this time-series collection is empty.- Specified by:
lastEntryAsyncin interfaceRTimeSeriesAsync<V,L> - Returns:
- the tail entry or
nullif this time-series collection is empty
-
lastAsync
Description copied from interface:RTimeSeriesAsyncReturns the tail elements of this time-series collection.- Specified by:
lastAsyncin interfaceRTimeSeriesAsync<V,L> - Parameters:
count- - elements amount- Returns:
- the tail elements
-
first
Description copied from interface:RTimeSeriesReturns the head element ornullif this time-series collection is empty.- Specified by:
firstin interfaceRTimeSeries<V,L> - Returns:
- the head element or
nullif this time-series collection is empty
-
firstAsync
Description copied from interface:RTimeSeriesAsyncReturns the head element ornullif this time-series collection is empty.- Specified by:
firstAsyncin interfaceRTimeSeriesAsync<V,L> - Returns:
- the head element or
nullif this time-series collection is empty
-
firstEntry
Description copied from interface:RTimeSeriesReturns the head entry ornullif this time-series collection is empty.- Specified by:
firstEntryin interfaceRTimeSeries<V,L> - Returns:
- the head entry or
nullif this time-series collection is empty
-
firstEntryAsync
Description copied from interface:RTimeSeriesAsyncReturns the head entry ornullif this time-series collection is empty.- Specified by:
firstEntryAsyncin interfaceRTimeSeriesAsync<V,L> - Returns:
- the head entry or
nullif this time-series collection is empty
-
firstAsync
Description copied from interface:RTimeSeriesAsyncReturns the head elements of this time-series collection.- Specified by:
firstAsyncin interfaceRTimeSeriesAsync<V,L> - Parameters:
count- - elements amount- Returns:
- the head elements
-
first
Description copied from interface:RTimeSeriesReturns the head elements of this time-series collection.- Specified by:
firstin interfaceRTimeSeries<V,L> - Parameters:
count- - elements amount- Returns:
- the head elements
-
firstEntries
Description copied from interface:RTimeSeriesReturns the head entries of this time-series collection.- Specified by:
firstEntriesin interfaceRTimeSeries<V,L> - Parameters:
count- - entries amount- Returns:
- the head entries
-
firstEntriesAsync
Description copied from interface:RTimeSeriesAsyncReturns the head entries of this time-series collection.- Specified by:
firstEntriesAsyncin interfaceRTimeSeriesAsync<V,L> - Parameters:
count- - entries amount- Returns:
- the head entries
-
last
Description copied from interface:RTimeSeriesReturns the tail elements of this time-series collection.- Specified by:
lastin interfaceRTimeSeries<V,L> - Parameters:
count- - elements amount- Returns:
- the tail elements
-
lastEntries
Description copied from interface:RTimeSeriesReturns the tail entries of this time-series collection.- Specified by:
lastEntriesin interfaceRTimeSeries<V,L> - Parameters:
count- - entries amount- Returns:
- the tail entries
-
lastEntriesAsync
Description copied from interface:RTimeSeriesAsyncReturns the tail entries of this time-series collection.- Specified by:
lastEntriesAsyncin interfaceRTimeSeriesAsync<V,L> - Parameters:
count- - entries amount- Returns:
- the tail entries
-
firstTimestamp
Description copied from interface:RTimeSeriesReturns timestamp of the head timestamp ornullif this time-series collection is empty.- Specified by:
firstTimestampin interfaceRTimeSeries<V,L> - Returns:
- timestamp or
nullif this time-series collection is empty
-
firstTimestampAsync
Description copied from interface:RTimeSeriesAsyncReturns timestamp of the head timestamp ornullif this time-series collection is empty.- Specified by:
firstTimestampAsyncin interfaceRTimeSeriesAsync<V,L> - Returns:
- timestamp or
nullif this time-series collection is empty
-
lastTimestamp
Description copied from interface:RTimeSeriesReturns timestamp of the tail element ornullif this time-series collection is empty.- Specified by:
lastTimestampin interfaceRTimeSeries<V,L> - Returns:
- timestamp or
nullif this time-series collection is empty
-
lastTimestampAsync
Description copied from interface:RTimeSeriesAsyncReturns timestamp of the tail element ornullif this time-series collection is empty.- Specified by:
lastTimestampAsyncin interfaceRTimeSeriesAsync<V,L> - Returns:
- timestamp or
nullif this time-series collection is empty
-
removeRange
public int removeRange(long startTimestamp, long endTimestamp) Description copied from interface:RTimeSeriesRemoves values within timestamp range. Including boundary values.- Specified by:
removeRangein interfaceRTimeSeries<V,L> - Parameters:
startTimestamp- - start timestampendTimestamp- - end timestamp- Returns:
- number of removed elements
-
removeRangeAsync
Description copied from interface:RTimeSeriesAsyncRemoves values within timestamp range. Including boundary values.- Specified by:
removeRangeAsyncin interfaceRTimeSeriesAsync<V,L> - Parameters:
startTimestamp- - start timestampendTimestamp- - end timestamp- Returns:
- number of removed elements
-
range
Description copied from interface:RTimeSeriesReturns ordered elements of this time-series collection within timestamp range. Including boundary values.- Specified by:
rangein interfaceRTimeSeries<V,L> - Parameters:
startTimestamp- start timestampendTimestamp- end timestamplimit- result size limit- Returns:
- elements collection
-
range
Description copied from interface:RTimeSeriesReturns ordered elements of this time-series collection within timestamp range. Including boundary values.- Specified by:
rangein interfaceRTimeSeries<V,L> - Parameters:
startTimestamp- - start timestampendTimestamp- - end timestamp- Returns:
- elements collection
-
entryRange
Description copied from interface:RTimeSeriesReturns ordered entries of this time-series collection within timestamp range. Including boundary values.- Specified by:
entryRangein interfaceRTimeSeries<V,L> - Parameters:
startTimestamp- - start timestampendTimestamp- - end timestamp- Returns:
- elements collection
-
entryRangeReversed
Description copied from interface:RTimeSeriesReturns entries of this time-series collection in reverse order within timestamp range. Including boundary values.- Specified by:
entryRangeReversedin interfaceRTimeSeries<V,L> - Parameters:
startTimestamp- - start timestampendTimestamp- - end timestamp- Returns:
- elements collection
-
entryRangeReversedAsync
public RFuture<Collection<TimeSeriesEntry<V,L>>> entryRangeReversedAsync(long startTimestamp, long endTimestamp) Description copied from interface:RTimeSeriesAsyncReturns entries of this time-series collection in reverse order within timestamp range. Including boundary values.- Specified by:
entryRangeReversedAsyncin interfaceRTimeSeriesAsync<V,L> - Parameters:
startTimestamp- - start timestampendTimestamp- - end timestamp- Returns:
- elements collection
-
entryRangeAsync
public RFuture<Collection<TimeSeriesEntry<V,L>>> entryRangeAsync(long startTimestamp, long endTimestamp) Description copied from interface:RTimeSeriesAsyncReturns ordered entries of this time-series collection within timestamp range. Including boundary values.- Specified by:
entryRangeAsyncin interfaceRTimeSeriesAsync<V,L> - Parameters:
startTimestamp- - start timestampendTimestamp- - end timestamp- Returns:
- elements collection
-
rangeReversed
Description copied from interface:RTimeSeriesReturns elements of this time-series collection in reverse order within timestamp range. Including boundary values.- Specified by:
rangeReversedin interfaceRTimeSeries<V,L> - Parameters:
startTimestamp- start timestampendTimestamp- end timestamplimit- result size limit- Returns:
- elements collection
-
rangeAsync
Description copied from interface:RTimeSeriesAsyncReturns ordered elements of this time-series collection within timestamp range. Including boundary values.- Specified by:
rangeAsyncin interfaceRTimeSeriesAsync<V,L> - Parameters:
startTimestamp- - start timestampendTimestamp- - end timestamp- Returns:
- elements collection
-
rangeAsync
Description copied from interface:RTimeSeriesAsyncReturns ordered elements of this time-series collection within timestamp range. Including boundary values.- Specified by:
rangeAsyncin interfaceRTimeSeriesAsync<V,L> - Parameters:
startTimestamp- start timestampendTimestamp- end timestamplimit- result size limit- Returns:
- elements collection
-
rangeReversed
Description copied from interface:RTimeSeriesReturns elements of this time-series collection in reverse order within timestamp range. Including boundary values.- Specified by:
rangeReversedin interfaceRTimeSeries<V,L> - Parameters:
startTimestamp- - start timestampendTimestamp- - end timestamp- Returns:
- elements collection
-
rangeReversedAsync
Description copied from interface:RTimeSeriesAsyncReturns elements of this time-series collection in reverse order within timestamp range. Including boundary values.- Specified by:
rangeReversedAsyncin interfaceRTimeSeriesAsync<V,L> - Parameters:
startTimestamp- - start timestampendTimestamp- - end timestamp- Returns:
- elements collection
-
rangeReversedAsync
Description copied from interface:RTimeSeriesAsyncReturns elements of this time-series collection in reverse order within timestamp range. Including boundary values.- Specified by:
rangeReversedAsyncin interfaceRTimeSeriesAsync<V,L> - Parameters:
startTimestamp- start timestampendTimestamp- end timestamplimit- result size limit- Returns:
- elements collection
-
entryRange
public Collection<TimeSeriesEntry<V,L>> entryRange(long startTimestamp, long endTimestamp, int limit) Description copied from interface:RTimeSeriesReturns ordered entries of this time-series collection within timestamp range. Including boundary values.- Specified by:
entryRangein interfaceRTimeSeries<V,L> - Parameters:
startTimestamp- start timestampendTimestamp- end timestamplimit- result size limit- Returns:
- elements collection
-
entryRangeAsync
public RFuture<Collection<TimeSeriesEntry<V,L>>> entryRangeAsync(long startTimestamp, long endTimestamp, int limit) Description copied from interface:RTimeSeriesAsyncReturns ordered entries of this time-series collection within timestamp range. Including boundary values.- Specified by:
entryRangeAsyncin interfaceRTimeSeriesAsync<V,L> - Parameters:
startTimestamp- start timestampendTimestamp- end timestamplimit- result size limit- Returns:
- elements collection
-
entryRangeReversed
public Collection<TimeSeriesEntry<V,L>> entryRangeReversed(long startTimestamp, long endTimestamp, int limit) Description copied from interface:RTimeSeriesReturns entries of this time-series collection in reverse order within timestamp range. Including boundary values.- Specified by:
entryRangeReversedin interfaceRTimeSeries<V,L> - Parameters:
startTimestamp- start timestampendTimestamp- end timestamplimit- result size limit- Returns:
- elements collection
-
entryRangeReversedAsync
public RFuture<Collection<TimeSeriesEntry<V,L>>> entryRangeReversedAsync(long startTimestamp, long endTimestamp, int limit) Description copied from interface:RTimeSeriesAsyncReturns entries of this time-series collection in reverse order within timestamp range. Including boundary values.- Specified by:
entryRangeReversedAsyncin interfaceRTimeSeriesAsync<V,L> - Parameters:
startTimestamp- start timestampendTimestamp- end timestamplimit- result size limit- Returns:
- elements collection
-
pollFirst
Description copied from interface:RTimeSeriesRemoves and returns the head elements- Specified by:
pollFirstin interfaceRTimeSeries<V,L> - Parameters:
count- - elements amount- Returns:
- collection of head elements
-
pollLast
Description copied from interface:RTimeSeriesRemoves and returns the tail elements ornullif this time-series collection is empty.- Specified by:
pollLastin interfaceRTimeSeries<V,L> - Parameters:
count- - elements amount- Returns:
- the tail element or
nullif this time-series collection is empty
-
pollFirstAsync
Description copied from interface:RTimeSeriesAsyncRemoves and returns the head elements- Specified by:
pollFirstAsyncin interfaceRTimeSeriesAsync<V,L> - Parameters:
count- - elements amount- Returns:
- collection of head elements
-
pollLastAsync
Description copied from interface:RTimeSeriesAsyncRemoves and returns the tail elements ornullif this time-series collection is empty.- Specified by:
pollLastAsyncin interfaceRTimeSeriesAsync<V,L> - Parameters:
count- - elements amount- Returns:
- the tail element or
nullif this time-series collection is empty
-
pollFirstEntries
Description copied from interface:RTimeSeriesRemoves and returns head entries- Specified by:
pollFirstEntriesin interfaceRTimeSeries<V,L> - Parameters:
count- - entries amount- Returns:
- collection of head entries
-
pollFirstEntriesAsync
Description copied from interface:RTimeSeriesAsyncRemoves and returns head entries- Specified by:
pollFirstEntriesAsyncin interfaceRTimeSeriesAsync<V,L> - Parameters:
count- - entries amount- Returns:
- collection of head entries
-
pollLastEntries
Description copied from interface:RTimeSeriesRemoves and returns tail entries- Specified by:
pollLastEntriesin interfaceRTimeSeries<V,L> - Parameters:
count- - entries amount- Returns:
- collection of tail entries
-
pollLastEntriesAsync
Description copied from interface:RTimeSeriesAsyncRemoves and returns tail entries- Specified by:
pollLastEntriesAsyncin interfaceRTimeSeriesAsync<V,L> - Parameters:
count- - entries amount- Returns:
- collection of tail entries
-
pollFirst
Description copied from interface:RTimeSeriesRemoves and returns the head element ornullif this time-series collection is empty.- Specified by:
pollFirstin interfaceRTimeSeries<V,L> - Returns:
- the head element,
or
nullif this time-series collection is empty
-
pollLast
Description copied from interface:RTimeSeriesRemoves and returns the tail element ornullif this time-series collection is empty.- Specified by:
pollLastin interfaceRTimeSeries<V,L> - Returns:
- the tail element or
nullif this time-series collection is empty
-
pollFirstAsync
Description copied from interface:RTimeSeriesAsyncRemoves and returns the head element ornullif this time-series collection is empty.- Specified by:
pollFirstAsyncin interfaceRTimeSeriesAsync<V,L> - Returns:
- the head element,
or
nullif this time-series collection is empty
-
pollLastAsync
Description copied from interface:RTimeSeriesAsyncRemoves and returns the tail element ornullif this time-series collection is empty.- Specified by:
pollLastAsyncin interfaceRTimeSeriesAsync<V,L> - Returns:
- the tail element or
nullif this time-series collection is empty
-
pollFirstEntry
Description copied from interface:RTimeSeriesRemoves and returns head entry ornullif this time-series collection is empty.- Specified by:
pollFirstEntryin interfaceRTimeSeries<V,L> - Returns:
- the head entry,
or
nullif this time-series collection is empty
-
pollFirstEntryAsync
Description copied from interface:RTimeSeriesAsyncRemoves and returns head entry ornullif this time-series collection is empty.- Specified by:
pollFirstEntryAsyncin interfaceRTimeSeriesAsync<V,L> - Returns:
- the head entry,
or
nullif this time-series collection is empty
-
pollLastEntry
Description copied from interface:RTimeSeriesRemoves and returns the tail entry ornullif this time-series collection is empty.- Specified by:
pollLastEntryin interfaceRTimeSeries<V,L> - Returns:
- the tail entry or
nullif this time-series collection is empty
-
pollLastEntryAsync
Description copied from interface:RTimeSeriesAsyncRemoves and returns the tail entry ornullif this time-series collection is empty.- Specified by:
pollLastEntryAsyncin interfaceRTimeSeriesAsync<V,L> - Returns:
- the tail entry or
nullif this time-series collection is empty
-
scanIterator
public ListScanResult<Object> scanIterator(String name, RedisClient client, long startPos, int count) -
scanIteratorAsync
public RFuture<ListScanResult<Object>> scanIteratorAsync(String name, RedisClient client, long startPos, int count) -
iterator
Description copied from interface:RTimeSeriesReturns an iterator over elements in this time-series collection. Elements are loaded in batch. Batch size is defined bycountparam.- Specified by:
iteratorin interfaceRTimeSeries<V,L> - Parameters:
count- - size of elements batch- Returns:
- iterator
-
iterator
-
stream
Description copied from interface:RTimeSeriesReturns stream of elements in this time-series collection. Elements are loaded in batch. Batch size is 10.- Specified by:
streamin interfaceRTimeSeries<V,L> - Returns:
- stream of elements
-
stream
Description copied from interface:RTimeSeriesReturns stream of elements in this time-series collection. Elements are loaded in batch. Batch size is defined bycountparam.- Specified by:
streamin interfaceRTimeSeries<V,L> - Parameters:
count- - size of elements batch- Returns:
- stream of elements
-
destroy
public void destroy()Description copied from interface:RDestroyableDestroys object when it's not necessary anymore.- Specified by:
destroyin interfaceRDestroyable
-
deleteAsync
Description copied from interface:RObjectAsyncDelete object in async mode- Specified by:
deleteAsyncin interfaceRObjectAsync- Overrides:
deleteAsyncin classRedissonObject- Returns:
trueif object was deletedfalseif not
-
expireAsync
-
expireAtAsync
-
clearExpireAsync
Description copied from interface:RExpirableAsyncClear an expire timeout or expire date for object in async mode. Object will not be deleted.- Specified by:
clearExpireAsyncin interfaceRExpirableAsync- Returns:
trueif the timeout was cleared andfalseif not
-
sizeInMemoryAsync
Description copied from interface:RObjectAsyncReturns bytes amount used by object in Redis memory.- Specified by:
sizeInMemoryAsyncin interfaceRObjectAsync- Overrides:
sizeInMemoryAsyncin classRedissonObject- Returns:
- size in bytes
-
expire
Description copied from interface:RExpirableUseRExpirable.expire(Duration)instead- Specified by:
expirein interfaceRExpirable- Parameters:
timeToLive- - timeout before object will be deletedtimeUnit- - timeout time unit- Returns:
trueif the timeout was set andfalseif not
-
expireAsync
Description copied from interface:RExpirableAsyncUseRExpirableAsync.expireAsync(Duration)instead- Specified by:
expireAsyncin interfaceRExpirableAsync- Parameters:
timeToLive- - timeout before object will be deletedtimeUnit- - timeout time unit- Returns:
trueif the timeout was set andfalseif not
-
expireAt
public boolean expireAt(long timestamp) Description copied from interface:RExpirableUseRExpirable.expire(Instant)instead- Specified by:
expireAtin interfaceRExpirable- Parameters:
timestamp- - expire date in milliseconds (Unix timestamp)- Returns:
trueif the timeout was set andfalseif not
-
expireAtAsync
Description copied from interface:RExpirableAsyncUseRExpirableAsync.expireAsync(Instant)instead- Specified by:
expireAtAsyncin interfaceRExpirableAsync- Parameters:
timestamp- - expire date in milliseconds (Unix timestamp)- Returns:
trueif the timeout was set andfalseif not
-
expire
Description copied from interface:RExpirableSets an expiration date for this object. When expire date comes the key will automatically be deleted.- Specified by:
expirein interfaceRExpirable- Parameters:
instant- expire date- Returns:
trueif the timeout was set andfalseif not
-
expireIfSet
Description copied from interface:RExpirableSets an expiration date for this object only if it has been already set. When expire date comes the object will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfSetin interfaceRExpirable- Parameters:
time- expire date- Returns:
trueif the timeout was set andfalseif not
-
expireIfSetAsync
Description copied from interface:RExpirableAsyncSets an expiration date for this object only if it has been already set. When expire date comes the object will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfSetAsyncin interfaceRExpirableAsync- Parameters:
time- expire date- Returns:
trueif the timeout was set andfalseif not
-
expireIfNotSet
Description copied from interface:RExpirableSets an expiration date for this object only if it hasn't been set before. When expire date comes the object will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfNotSetin interfaceRExpirable- Parameters:
time- expire date- Returns:
trueif the timeout was set andfalseif not
-
expireIfNotSetAsync
Description copied from interface:RExpirableAsyncSets an expiration date for this object only if it hasn't been set before. When expire date comes the object will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfNotSetAsyncin interfaceRExpirableAsync- Parameters:
time- expire date- Returns:
trueif the timeout was set andfalseif not
-
expireIfGreater
Description copied from interface:RExpirableSets an expiration date for this object only if it's greater than expiration date set before. When expire date comes the object will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfGreaterin interfaceRExpirable- Parameters:
time- expire date- Returns:
trueif the timeout was set andfalseif not
-
expireIfGreaterAsync
Description copied from interface:RExpirableAsyncSets an expiration date for this object only if it's greater than expiration date set before. When expire date comes the object will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfGreaterAsyncin interfaceRExpirableAsync- Parameters:
time- expire date- Returns:
trueif the timeout was set andfalseif not
-
expireIfLess
Description copied from interface:RExpirableSets an expiration date for this object only if it's less than expiration date set before. When expire date comes the object will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfLessin interfaceRExpirable- Parameters:
time- expire date- Returns:
trueif the timeout was set andfalseif not
-
expireIfLessAsync
Description copied from interface:RExpirableAsyncSets an expiration date for this object only if it's less than expiration date set before. When expire date comes the object will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfLessAsyncin interfaceRExpirableAsync- Parameters:
time- expire date- Returns:
trueif the timeout was set andfalseif not
-
expireAsync
Description copied from interface:RExpirableAsyncSet an expire date for object. When expire date comes the key will automatically be deleted.- Specified by:
expireAsyncin interfaceRExpirableAsync- Parameters:
instant- - expire date- Returns:
trueif the timeout was set andfalseif not
-
expire
Description copied from interface:RExpirableSets a timeout for this object. After the timeout has expired, the key will automatically be deleted.- Specified by:
expirein interfaceRExpirable- Parameters:
duration- timeout before object will be deleted- Returns:
trueif the timeout was set andfalseif not
-
expireAsync
Description copied from interface:RExpirableAsyncSet a timeout for object. After the timeout has expired, the key will automatically be deleted.- Specified by:
expireAsyncin interfaceRExpirableAsync- Parameters:
duration- timeout before object will be deleted- Returns:
trueif the timeout was set andfalseif not
-
expireAt
Description copied from interface:RExpirableUseRExpirable.expire(Instant)instead- Specified by:
expireAtin interfaceRExpirable- Parameters:
timestamp- - expire date- Returns:
trueif the timeout was set andfalseif not
-
expireAtAsync
Description copied from interface:RExpirableAsyncUseRExpirableAsync.expireAsync(Instant)instead- Specified by:
expireAtAsyncin interfaceRExpirableAsync- Parameters:
timestamp- - expire date- Returns:
trueif the timeout was set andfalseif not
-
expireIfSet
Description copied from interface:RExpirableSets a timeout for this object only if it has been already set. After the timeout has expired, the key will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfSetin interfaceRExpirable- Parameters:
duration- timeout before object will be deleted- Returns:
trueif the timeout was set andfalseif not
-
expireIfSetAsync
Description copied from interface:RExpirableAsyncSets a timeout for this object only if it has been already set. After the timeout has expired, the key will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfSetAsyncin interfaceRExpirableAsync- Parameters:
duration- timeout before object will be deleted- Returns:
trueif the timeout was set andfalseif not
-
expireIfNotSet
Description copied from interface:RExpirableSets a timeout for this object only if it hasn't been set before. After the timeout has expired, the key will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfNotSetin interfaceRExpirable- Parameters:
duration- timeout before object will be deleted- Returns:
trueif the timeout was set andfalseif not
-
expireIfNotSetAsync
Description copied from interface:RExpirableAsyncSets a timeout for this object only if it hasn't been set before. After the timeout has expired, the key will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfNotSetAsyncin interfaceRExpirableAsync- Parameters:
duration- timeout before object will be deleted- Returns:
trueif the timeout was set andfalseif not
-
expireIfGreater
Description copied from interface:RExpirableSets a timeout for this object only if it's greater than timeout set before. After the timeout has expired, the key will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfGreaterin interfaceRExpirable- Parameters:
duration- timeout before object will be deleted- Returns:
trueif the timeout was set andfalseif not
-
expireIfGreaterAsync
Description copied from interface:RExpirableAsyncSets a timeout for this object only if it's greater than timeout set before. After the timeout has expired, the key will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfGreaterAsyncin interfaceRExpirableAsync- Parameters:
duration- timeout before object will be deleted- Returns:
trueif the timeout was set andfalseif not
-
expireIfLess
Description copied from interface:RExpirableSets a timeout for this object only if it's less than timeout set before. After the timeout has expired, the key will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfLessin interfaceRExpirable- Parameters:
duration- timeout before object will be deleted- Returns:
trueif the timeout was set andfalseif not
-
expireIfLessAsync
Description copied from interface:RExpirableAsyncSets a timeout for this object only if it's less than timeout set before. After the timeout has expired, the key will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfLessAsyncin interfaceRExpirableAsync- Parameters:
duration- timeout before object will be deleted- Returns:
trueif the timeout was set andfalseif not
-
clearExpire
public boolean clearExpire()Description copied from interface:RExpirableClear an expire timeout or expire date for object.- Specified by:
clearExpirein interfaceRExpirable- Returns:
trueif timeout was removedfalseif object does not exist or does not have an associated timeout
-
remainTimeToLive
public long remainTimeToLive()Description copied from interface:RExpirableRemaining time to live of Redisson object that has a timeout- Specified by:
remainTimeToLivein interfaceRExpirable- Returns:
- time in milliseconds -2 if the key does not exist. -1 if the key exists but has no associated expire.
-
remainTimeToLiveAsync
Description copied from interface:RExpirableAsyncRemaining time to live of Redisson object that has a timeout- Specified by:
remainTimeToLiveAsyncin interfaceRExpirableAsync- Returns:
- time in milliseconds -2 if the key does not exist. -1 if the key exists but has no associated expire.
-
getExpireTime
public long getExpireTime()Description copied from interface:RExpirableExpiration time of Redisson object that has a timeoutRequires Redis 7.0.0 and higher.
- Specified by:
getExpireTimein interfaceRExpirable- Returns:
- expiration time
-
getExpireTimeAsync
Description copied from interface:RExpirableAsyncExpiration time of Redisson object that has a timeoutRequires Redis 7.0.0 and higher.
- Specified by:
getExpireTimeAsyncin interfaceRExpirableAsync- Returns:
- expiration time
-
clearExpireAsync
-