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
ConstructorDescriptionRedissonTimeSeries
(Codec codec, EvictionScheduler evictionScheduler, CommandAsyncExecutor connectionManager, String name) RedissonTimeSeries
(EvictionScheduler evictionScheduler, CommandAsyncExecutor connectionManager, String name) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds element to this time-series collection by specifiedtimestamp
.void
Adds element to this time-series collection by specifiedtimestamp
.void
Adds element withlabel
to this time-series collection by specifiedtimestamp
.void
Adds element withlabel
to this time-series collection by specifiedtimestamp
.void
addAll
(Collection<TimeSeriesEntry<V, L>> entries) Adds all entries collection to this time-series collection.void
addAll
(Collection<TimeSeriesEntry<V, L>> entries, Duration timeToLive) Adds all time series entries collection to this time-series collection.void
Adds all elements contained in the specified map to this time-series collection.void
Adds 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 withlabel
to this time-series collection by specifiedtimestamp
.Adds element withlabel
to this time-series collection by specifiedtimestamp
.boolean
Clear 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 modevoid
destroy()
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.boolean
UseRExpirable.expire(Duration)
insteadboolean
Sets a timeout for this object.boolean
Sets 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.boolean
expireAt
(long timestamp) UseRExpirable.expire(Instant)
insteadboolean
UseRExpirable.expire(Instant)
insteadexpireAtAsync
(long timestamp) UseRExpirableAsync.expireAsync(Instant)
insteadexpireAtAsync
(long timestamp, String param, String... keys) expireAtAsync
(Date timestamp) UseRExpirableAsync.expireAsync(Instant)
insteadboolean
expireIfGreater
(Duration duration) Sets a timeout for this object only if it's greater than timeout set before.boolean
expireIfGreater
(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.boolean
expireIfLess
(Duration duration) Sets a timeout for this object only if it's less than timeout set before.boolean
expireIfLess
(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.boolean
expireIfNotSet
(Duration duration) Sets a timeout for this object only if it hasn't been set before.boolean
expireIfNotSet
(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.boolean
expireIfSet
(Duration duration) Sets a timeout for this object only if it has been already set.boolean
expireIfSet
(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 ornull
if this time-series collection is empty.first
(int count) Returns the head elements of this time-series collection.Returns the head element ornull
if 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 ornull
if this time-series collection is empty.Returns the head entry ornull
if this time-series collection is empty.Returns timestamp of the head timestamp ornull
if this time-series collection is empty.Returns timestamp of the head timestamp ornull
if this time-series collection is empty.get
(long timestamp) Returns object by specifiedtimestamp
ornull
if 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 specifiedtimestamp
ornull
if it doesn't exist.getEntry
(long timestamp) Returns time series entry by specifiedtimestamp
ornull
if it doesn't exist.getEntryAsync
(long timestamp) Returns time series entry by specifiedtimestamp
ornull
if it doesn't exist.long
Expiration 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 ornull
if this time-series collection is empty.last
(int count) Returns the tail elements of this time-series collection.Returns the tail element ornull
if 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 ornull
if this time-series collection is empty.Returns the tail entry ornull
if this time-series collection is empty.Returns timestamp of the tail element ornull
if this time-series collection is empty.Returns timestamp of the tail element ornull
if this time-series collection is empty.Removes and returns the head element ornull
if this time-series collection is empty.pollFirst
(int count) Removes and returns the head elementsRemoves and returns the head element ornull
if 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 ornull
if this time-series collection is empty.Removes and returns head entry ornull
if this time-series collection is empty.pollLast()
Removes and returns the tail element ornull
if this time-series collection is empty.pollLast
(int count) Removes and returns the tail elements ornull
if this time-series collection is empty.Removes and returns the tail element ornull
if this time-series collection is empty.pollLastAsync
(int count) Removes and returns the tail elements ornull
if 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 ornull
if this time-series collection is empty.Removes and returns the tail entry ornull
if 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.long
Remaining time to live of Redisson object that has a timeoutRemaining time to live of Redisson object that has a timeoutboolean
remove
(long timestamp) Removes object by specifiedtimestamp
.removeAsync
(long timestamp) Removes object by specifiedtimestamp
.int
removeRange
(long startTimestamp, long endTimestamp) Removes values within timestamp range.removeRangeAsync
(long startTimestamp, long endTimestamp) Removes values within timestamp range.scanIterator
(String name, RedisClient client, String startPos, int count) scanIteratorAsync
(String name, RedisClient client, String startPos, int count) int
size()
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, addTrackingListener, addTrackingListenerAsync, copy, copyAsync, delete, deleteAsync, dump, dumpAsync, encode, encode, encode, encode, encodeMapKey, encodeMapKey, encodeMapKeys, encodeMapValue, encodeMapValues, get, getCodec, getIdleTime, getIdleTimeAsync, getLockByMapKey, getLockByValue, getName, getRawName, getRawName, getServiceManager, getSubscribeService, isExists, isExistsAsync, map, migrate, migrateAsync, move, moveAsync, prefixName, removeListener, removeListener, removeListenerAsync, removeListenerAsync, removeListenerAsync, removeTrackingListener, removeTrackingListenerAsync, rename, renameAsync, renamenx, renamenxAsync, restore, restore, restoreAndReplace, restoreAndReplace, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, setName, sizeInMemory, sizeInMemoryAsync, sizeInMemoryAsync, suffixName, toSeconds, toStream, 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 java.lang.Iterable
forEach, spliterator
Methods inherited from interface org.redisson.api.RExpirable
clearExpire, expire, expire, expire, expireAt, expireAt, expireIfGreater, expireIfGreater, expireIfLess, expireIfLess, expireIfNotSet, expireIfNotSet, expireIfSet, expireIfSet, getExpireTime, remainTimeToLive
Methods inherited from interface org.redisson.api.RExpirableAsync
expireAsync, expireAsync, expireAsync, expireAtAsync, expireAtAsync, expireIfGreaterAsync, expireIfGreaterAsync, expireIfLessAsync, expireIfLessAsync, expireIfNotSetAsync, expireIfNotSetAsync, expireIfSetAsync, expireIfSetAsync, getExpireTimeAsync, remainTimeToLiveAsync
Methods 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, unlink
Methods 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:RTimeSeries
Adds element to this time-series collection by specifiedtimestamp
.- Specified by:
add
in interfaceRTimeSeries<V,
L> - Parameters:
timestamp
- object timestampvalue
- object itself
-
addAsync
Description copied from interface:RTimeSeriesAsync
Adds element to this time-series collection by specifiedtimestamp
.- Specified by:
addAsync
in interfaceRTimeSeriesAsync<V,
L> - Parameters:
timestamp
- object timestampobject
- object itself- Returns:
- void
-
add
Description copied from interface:RTimeSeries
Adds element withlabel
to this time-series collection by specifiedtimestamp
.- Specified by:
add
in interfaceRTimeSeries<V,
L> - Parameters:
timestamp
- object timestampobject
- object itselflabel
- object label
-
addAsync
Description copied from interface:RTimeSeriesAsync
Adds element withlabel
to this time-series collection by specifiedtimestamp
.- Specified by:
addAsync
in interfaceRTimeSeriesAsync<V,
L> - Parameters:
timestamp
- object timestampobject
- object itselflabel
- object label
-
addAll
Description copied from interface:RTimeSeries
Adds all elements contained in the specified map to this time-series collection. Map contains of timestamp mapped by object.- Specified by:
addAll
in interfaceRTimeSeries<V,
L> - Parameters:
objects
- - map of elements to add
-
add
Description copied from interface:RTimeSeries
Adds element to this time-series collection by specifiedtimestamp
.- Specified by:
add
in interfaceRTimeSeries<V,
L> - Parameters:
timestamp
- - object timestampvalue
- - object itselftimeToLive
- - time to live intervaltimeUnit
- - unit of time to live interval
-
addAsync
Description copied from interface:RTimeSeriesAsync
Adds element to this time-series collection by specifiedtimestamp
.- Specified by:
addAsync
in 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:RTimeSeries
Adds element withlabel
to this time-series collection by specifiedtimestamp
.- Specified by:
add
in interfaceRTimeSeries<V,
L> - Parameters:
timestamp
- object timestampobject
- object itselflabel
- object labeltimeToLive
- time to live interval
-
addAsync
Description copied from interface:RTimeSeriesAsync
Adds element withlabel
to this time-series collection by specifiedtimestamp
.- Specified by:
addAsync
in interfaceRTimeSeriesAsync<V,
L> - Parameters:
timestamp
- object timestampobject
- object itselflabel
- object labeltimeToLive
- time to live interval- Returns:
- void
-
addAll
Description copied from interface:RTimeSeries
Adds all elements contained in the specified map to this time-series collection. Map contains of timestamp mapped by object.- Specified by:
addAll
in 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:RTimeSeriesAsync
Adds all elements contained in the specified map to this time-series collection. Map contains of timestamp mapped by object.- Specified by:
addAllAsync
in interfaceRTimeSeriesAsync<V,
L> - Parameters:
objects
- - map of elements to add- Returns:
- void
-
addAllAsync
Description copied from interface:RTimeSeriesAsync
Adds all elements contained in the specified map to this time-series collection. Map contains of timestamp mapped by object.- Specified by:
addAllAsync
in 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:RTimeSeries
Adds all entries collection to this time-series collection.- Specified by:
addAll
in interfaceRTimeSeries<V,
L> - Parameters:
entries
- collection of time series entries
-
addAllAsync
Description copied from interface:RTimeSeriesAsync
Adds all entries collection to this time-series collection.- Specified by:
addAllAsync
in interfaceRTimeSeriesAsync<V,
L> - Parameters:
entries
- collection of time series entries- Returns:
- void
-
addAll
Description copied from interface:RTimeSeries
Adds all time series entries collection to this time-series collection. Specified time to live interval applied to all entries defined in collection.- Specified by:
addAll
in interfaceRTimeSeries<V,
L> - Parameters:
entries
- collection of time series entriestimeToLive
- time to live interval
-
addAllAsync
Description copied from interface:RTimeSeriesAsync
Adds all time series entries collection to this time-series collection. Specified time to live interval applied to all entries defined in collection.- Specified by:
addAllAsync
in interfaceRTimeSeriesAsync<V,
L> - Parameters:
entries
- collection of time series entriestimeToLive
- time to live interval- Returns:
- void
-
size
public int size()Description copied from interface:RTimeSeries
Returns size of this set.- Specified by:
size
in interfaceRTimeSeries<V,
L> - Returns:
- size
-
sizeAsync
Description copied from interface:RTimeSeriesAsync
Returns size of this set.- Specified by:
sizeAsync
in interfaceRTimeSeriesAsync<V,
L> - Returns:
- size
-
get
Description copied from interface:RTimeSeries
Returns object by specifiedtimestamp
ornull
if it doesn't exist.- Specified by:
get
in interfaceRTimeSeries<V,
L> - Parameters:
timestamp
- - object timestamp- Returns:
- object
-
getAsync
Description copied from interface:RTimeSeriesAsync
Returns object by specifiedtimestamp
ornull
if it doesn't exist.- Specified by:
getAsync
in interfaceRTimeSeriesAsync<V,
L> - Parameters:
timestamp
- - object timestamp- Returns:
- object
-
getEntry
Description copied from interface:RTimeSeries
Returns time series entry by specifiedtimestamp
ornull
if it doesn't exist.- Specified by:
getEntry
in interfaceRTimeSeries<V,
L> - Parameters:
timestamp
- object timestamp- Returns:
- time series entry
-
getEntryAsync
Description copied from interface:RTimeSeriesAsync
Returns time series entry by specifiedtimestamp
ornull
if it doesn't exist.- Specified by:
getEntryAsync
in interfaceRTimeSeriesAsync<V,
L> - Parameters:
timestamp
- object timestamp- Returns:
- time series entry
-
remove
public boolean remove(long timestamp) Description copied from interface:RTimeSeries
Removes object by specifiedtimestamp
.- Specified by:
remove
in interfaceRTimeSeries<V,
L> - Parameters:
timestamp
- - object timestamp- Returns:
true
if an element was removed as a result of this call
-
removeAsync
Description copied from interface:RTimeSeriesAsync
Removes object by specifiedtimestamp
.- Specified by:
removeAsync
in interfaceRTimeSeriesAsync<V,
L> - Parameters:
timestamp
- - object timestamp- Returns:
true
if an element was removed as a result of this call
-
getAndRemove
Description copied from interface:RTimeSeries
Removes and returns object by specifiedtimestamp
.- Specified by:
getAndRemove
in interfaceRTimeSeries<V,
L> - Parameters:
timestamp
- - object timestamp- Returns:
- object or
null
if it doesn't exist
-
getAndRemoveAsync
Description copied from interface:RTimeSeriesAsync
Removes and returns object by specifiedtimestamp
.- Specified by:
getAndRemoveAsync
in interfaceRTimeSeriesAsync<V,
L> - Parameters:
timestamp
- - object timestamp- Returns:
- object or
null
if it doesn't exist
-
getAndRemoveEntry
Description copied from interface:RTimeSeries
Removes and returns entry by specifiedtimestamp
.- Specified by:
getAndRemoveEntry
in interfaceRTimeSeries<V,
L> - Parameters:
timestamp
- - object timestamp- Returns:
- entry or
null
if it doesn't exist
-
getAndRemoveEntryAsync
Description copied from interface:RTimeSeriesAsync
Removes and returns entry by specifiedtimestamp
.- Specified by:
getAndRemoveEntryAsync
in interfaceRTimeSeriesAsync<V,
L> - Parameters:
timestamp
- - object timestamp- Returns:
- entry or
null
if it doesn't exist
-
last
Description copied from interface:RTimeSeries
Returns the tail element ornull
if this time-series collection is empty.- Specified by:
last
in interfaceRTimeSeries<V,
L> - Returns:
- the tail element or
null
if this time-series collection is empty
-
lastAsync
Description copied from interface:RTimeSeriesAsync
Returns the tail element ornull
if this time-series collection is empty.- Specified by:
lastAsync
in interfaceRTimeSeriesAsync<V,
L> - Returns:
- the tail element or
null
if this time-series collection is empty
-
lastEntry
Description copied from interface:RTimeSeries
Returns the tail entry ornull
if this time-series collection is empty.- Specified by:
lastEntry
in interfaceRTimeSeries<V,
L> - Returns:
- the tail entry or
null
if this time-series collection is empty
-
lastEntryAsync
Description copied from interface:RTimeSeriesAsync
Returns the tail entry ornull
if this time-series collection is empty.- Specified by:
lastEntryAsync
in interfaceRTimeSeriesAsync<V,
L> - Returns:
- the tail entry or
null
if this time-series collection is empty
-
lastAsync
Description copied from interface:RTimeSeriesAsync
Returns the tail elements of this time-series collection.- Specified by:
lastAsync
in interfaceRTimeSeriesAsync<V,
L> - Parameters:
count
- - elements amount- Returns:
- the tail elements
-
first
Description copied from interface:RTimeSeries
Returns the head element ornull
if this time-series collection is empty.- Specified by:
first
in interfaceRTimeSeries<V,
L> - Returns:
- the head element or
null
if this time-series collection is empty
-
firstAsync
Description copied from interface:RTimeSeriesAsync
Returns the head element ornull
if this time-series collection is empty.- Specified by:
firstAsync
in interfaceRTimeSeriesAsync<V,
L> - Returns:
- the head element or
null
if this time-series collection is empty
-
firstEntry
Description copied from interface:RTimeSeries
Returns the head entry ornull
if this time-series collection is empty.- Specified by:
firstEntry
in interfaceRTimeSeries<V,
L> - Returns:
- the head entry or
null
if this time-series collection is empty
-
firstEntryAsync
Description copied from interface:RTimeSeriesAsync
Returns the head entry ornull
if this time-series collection is empty.- Specified by:
firstEntryAsync
in interfaceRTimeSeriesAsync<V,
L> - Returns:
- the head entry or
null
if this time-series collection is empty
-
firstAsync
Description copied from interface:RTimeSeriesAsync
Returns the head elements of this time-series collection.- Specified by:
firstAsync
in interfaceRTimeSeriesAsync<V,
L> - Parameters:
count
- - elements amount- Returns:
- the head elements
-
first
Description copied from interface:RTimeSeries
Returns the head elements of this time-series collection.- Specified by:
first
in interfaceRTimeSeries<V,
L> - Parameters:
count
- - elements amount- Returns:
- the head elements
-
firstEntries
Description copied from interface:RTimeSeries
Returns the head entries of this time-series collection.- Specified by:
firstEntries
in interfaceRTimeSeries<V,
L> - Parameters:
count
- - entries amount- Returns:
- the head entries
-
firstEntriesAsync
Description copied from interface:RTimeSeriesAsync
Returns the head entries of this time-series collection.- Specified by:
firstEntriesAsync
in interfaceRTimeSeriesAsync<V,
L> - Parameters:
count
- - entries amount- Returns:
- the head entries
-
last
Description copied from interface:RTimeSeries
Returns the tail elements of this time-series collection.- Specified by:
last
in interfaceRTimeSeries<V,
L> - Parameters:
count
- - elements amount- Returns:
- the tail elements
-
lastEntries
Description copied from interface:RTimeSeries
Returns the tail entries of this time-series collection.- Specified by:
lastEntries
in interfaceRTimeSeries<V,
L> - Parameters:
count
- - entries amount- Returns:
- the tail entries
-
lastEntriesAsync
Description copied from interface:RTimeSeriesAsync
Returns the tail entries of this time-series collection.- Specified by:
lastEntriesAsync
in interfaceRTimeSeriesAsync<V,
L> - Parameters:
count
- - entries amount- Returns:
- the tail entries
-
firstTimestamp
Description copied from interface:RTimeSeries
Returns timestamp of the head timestamp ornull
if this time-series collection is empty.- Specified by:
firstTimestamp
in interfaceRTimeSeries<V,
L> - Returns:
- timestamp or
null
if this time-series collection is empty
-
firstTimestampAsync
Description copied from interface:RTimeSeriesAsync
Returns timestamp of the head timestamp ornull
if this time-series collection is empty.- Specified by:
firstTimestampAsync
in interfaceRTimeSeriesAsync<V,
L> - Returns:
- timestamp or
null
if this time-series collection is empty
-
lastTimestamp
Description copied from interface:RTimeSeries
Returns timestamp of the tail element ornull
if this time-series collection is empty.- Specified by:
lastTimestamp
in interfaceRTimeSeries<V,
L> - Returns:
- timestamp or
null
if this time-series collection is empty
-
lastTimestampAsync
Description copied from interface:RTimeSeriesAsync
Returns timestamp of the tail element ornull
if this time-series collection is empty.- Specified by:
lastTimestampAsync
in interfaceRTimeSeriesAsync<V,
L> - Returns:
- timestamp or
null
if this time-series collection is empty
-
removeRange
public int removeRange(long startTimestamp, long endTimestamp) Description copied from interface:RTimeSeries
Removes values within timestamp range. Including boundary values.- Specified by:
removeRange
in interfaceRTimeSeries<V,
L> - Parameters:
startTimestamp
- - start timestampendTimestamp
- - end timestamp- Returns:
- number of removed elements
-
removeRangeAsync
Description copied from interface:RTimeSeriesAsync
Removes values within timestamp range. Including boundary values.- Specified by:
removeRangeAsync
in interfaceRTimeSeriesAsync<V,
L> - Parameters:
startTimestamp
- - start timestampendTimestamp
- - end timestamp- Returns:
- number of removed elements
-
range
Description copied from interface:RTimeSeries
Returns ordered elements of this time-series collection within timestamp range. Including boundary values.- Specified by:
range
in interfaceRTimeSeries<V,
L> - Parameters:
startTimestamp
- start timestampendTimestamp
- end timestamplimit
- result size limit- Returns:
- elements collection
-
range
Description copied from interface:RTimeSeries
Returns ordered elements of this time-series collection within timestamp range. Including boundary values.- Specified by:
range
in interfaceRTimeSeries<V,
L> - Parameters:
startTimestamp
- - start timestampendTimestamp
- - end timestamp- Returns:
- elements collection
-
entryRange
Description copied from interface:RTimeSeries
Returns ordered entries of this time-series collection within timestamp range. Including boundary values.- Specified by:
entryRange
in interfaceRTimeSeries<V,
L> - Parameters:
startTimestamp
- - start timestampendTimestamp
- - end timestamp- Returns:
- elements collection
-
entryRangeReversed
Description copied from interface:RTimeSeries
Returns entries of this time-series collection in reverse order within timestamp range. Including boundary values.- Specified by:
entryRangeReversed
in 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:RTimeSeriesAsync
Returns entries of this time-series collection in reverse order within timestamp range. Including boundary values.- Specified by:
entryRangeReversedAsync
in 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:RTimeSeriesAsync
Returns ordered entries of this time-series collection within timestamp range. Including boundary values.- Specified by:
entryRangeAsync
in interfaceRTimeSeriesAsync<V,
L> - Parameters:
startTimestamp
- - start timestampendTimestamp
- - end timestamp- Returns:
- elements collection
-
rangeReversed
Description copied from interface:RTimeSeries
Returns elements of this time-series collection in reverse order within timestamp range. Including boundary values.- Specified by:
rangeReversed
in interfaceRTimeSeries<V,
L> - Parameters:
startTimestamp
- start timestampendTimestamp
- end timestamplimit
- result size limit- Returns:
- elements collection
-
rangeAsync
Description copied from interface:RTimeSeriesAsync
Returns ordered elements of this time-series collection within timestamp range. Including boundary values.- Specified by:
rangeAsync
in interfaceRTimeSeriesAsync<V,
L> - Parameters:
startTimestamp
- - start timestampendTimestamp
- - end timestamp- Returns:
- elements collection
-
rangeAsync
Description copied from interface:RTimeSeriesAsync
Returns ordered elements of this time-series collection within timestamp range. Including boundary values.- Specified by:
rangeAsync
in interfaceRTimeSeriesAsync<V,
L> - Parameters:
startTimestamp
- start timestampendTimestamp
- end timestamplimit
- result size limit- Returns:
- elements collection
-
rangeReversed
Description copied from interface:RTimeSeries
Returns elements of this time-series collection in reverse order within timestamp range. Including boundary values.- Specified by:
rangeReversed
in interfaceRTimeSeries<V,
L> - Parameters:
startTimestamp
- - start timestampendTimestamp
- - end timestamp- Returns:
- elements collection
-
rangeReversedAsync
Description copied from interface:RTimeSeriesAsync
Returns elements of this time-series collection in reverse order within timestamp range. Including boundary values.- Specified by:
rangeReversedAsync
in interfaceRTimeSeriesAsync<V,
L> - Parameters:
startTimestamp
- - start timestampendTimestamp
- - end timestamp- Returns:
- elements collection
-
rangeReversedAsync
Description copied from interface:RTimeSeriesAsync
Returns elements of this time-series collection in reverse order within timestamp range. Including boundary values.- Specified by:
rangeReversedAsync
in 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:RTimeSeries
Returns ordered entries of this time-series collection within timestamp range. Including boundary values.- Specified by:
entryRange
in 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:RTimeSeriesAsync
Returns ordered entries of this time-series collection within timestamp range. Including boundary values.- Specified by:
entryRangeAsync
in 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:RTimeSeries
Returns entries of this time-series collection in reverse order within timestamp range. Including boundary values.- Specified by:
entryRangeReversed
in 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:RTimeSeriesAsync
Returns entries of this time-series collection in reverse order within timestamp range. Including boundary values.- Specified by:
entryRangeReversedAsync
in interfaceRTimeSeriesAsync<V,
L> - Parameters:
startTimestamp
- start timestampendTimestamp
- end timestamplimit
- result size limit- Returns:
- elements collection
-
pollFirst
Description copied from interface:RTimeSeries
Removes and returns the head elements- Specified by:
pollFirst
in interfaceRTimeSeries<V,
L> - Parameters:
count
- - elements amount- Returns:
- collection of head elements
-
pollLast
Description copied from interface:RTimeSeries
Removes and returns the tail elements ornull
if this time-series collection is empty.- Specified by:
pollLast
in interfaceRTimeSeries<V,
L> - Parameters:
count
- - elements amount- Returns:
- the tail element or
null
if this time-series collection is empty
-
pollFirstAsync
Description copied from interface:RTimeSeriesAsync
Removes and returns the head elements- Specified by:
pollFirstAsync
in interfaceRTimeSeriesAsync<V,
L> - Parameters:
count
- - elements amount- Returns:
- collection of head elements
-
pollLastAsync
Description copied from interface:RTimeSeriesAsync
Removes and returns the tail elements ornull
if this time-series collection is empty.- Specified by:
pollLastAsync
in interfaceRTimeSeriesAsync<V,
L> - Parameters:
count
- - elements amount- Returns:
- the tail element or
null
if this time-series collection is empty
-
pollFirstEntries
Description copied from interface:RTimeSeries
Removes and returns head entries- Specified by:
pollFirstEntries
in interfaceRTimeSeries<V,
L> - Parameters:
count
- - entries amount- Returns:
- collection of head entries
-
pollFirstEntriesAsync
Description copied from interface:RTimeSeriesAsync
Removes and returns head entries- Specified by:
pollFirstEntriesAsync
in interfaceRTimeSeriesAsync<V,
L> - Parameters:
count
- - entries amount- Returns:
- collection of head entries
-
pollLastEntries
Description copied from interface:RTimeSeries
Removes and returns tail entries- Specified by:
pollLastEntries
in interfaceRTimeSeries<V,
L> - Parameters:
count
- - entries amount- Returns:
- collection of tail entries
-
pollLastEntriesAsync
Description copied from interface:RTimeSeriesAsync
Removes and returns tail entries- Specified by:
pollLastEntriesAsync
in interfaceRTimeSeriesAsync<V,
L> - Parameters:
count
- - entries amount- Returns:
- collection of tail entries
-
pollFirst
Description copied from interface:RTimeSeries
Removes and returns the head element ornull
if this time-series collection is empty.- Specified by:
pollFirst
in interfaceRTimeSeries<V,
L> - Returns:
- the head element,
or
null
if this time-series collection is empty
-
pollLast
Description copied from interface:RTimeSeries
Removes and returns the tail element ornull
if this time-series collection is empty.- Specified by:
pollLast
in interfaceRTimeSeries<V,
L> - Returns:
- the tail element or
null
if this time-series collection is empty
-
pollFirstAsync
Description copied from interface:RTimeSeriesAsync
Removes and returns the head element ornull
if this time-series collection is empty.- Specified by:
pollFirstAsync
in interfaceRTimeSeriesAsync<V,
L> - Returns:
- the head element,
or
null
if this time-series collection is empty
-
pollLastAsync
Description copied from interface:RTimeSeriesAsync
Removes and returns the tail element ornull
if this time-series collection is empty.- Specified by:
pollLastAsync
in interfaceRTimeSeriesAsync<V,
L> - Returns:
- the tail element or
null
if this time-series collection is empty
-
pollFirstEntry
Description copied from interface:RTimeSeries
Removes and returns head entry ornull
if this time-series collection is empty.- Specified by:
pollFirstEntry
in interfaceRTimeSeries<V,
L> - Returns:
- the head entry,
or
null
if this time-series collection is empty
-
pollFirstEntryAsync
Description copied from interface:RTimeSeriesAsync
Removes and returns head entry ornull
if this time-series collection is empty.- Specified by:
pollFirstEntryAsync
in interfaceRTimeSeriesAsync<V,
L> - Returns:
- the head entry,
or
null
if this time-series collection is empty
-
pollLastEntry
Description copied from interface:RTimeSeries
Removes and returns the tail entry ornull
if this time-series collection is empty.- Specified by:
pollLastEntry
in interfaceRTimeSeries<V,
L> - Returns:
- the tail entry or
null
if this time-series collection is empty
-
pollLastEntryAsync
Description copied from interface:RTimeSeriesAsync
Removes and returns the tail entry ornull
if this time-series collection is empty.- Specified by:
pollLastEntryAsync
in interfaceRTimeSeriesAsync<V,
L> - Returns:
- the tail entry or
null
if this time-series collection is empty
-
scanIterator
public ListScanResult<Object> scanIterator(String name, RedisClient client, String startPos, int count) -
scanIteratorAsync
public RFuture<ListScanResult<Object>> scanIteratorAsync(String name, RedisClient client, String startPos, int count) -
iterator
Description copied from interface:RTimeSeries
Returns an iterator over elements in this time-series collection. Elements are loaded in batch. Batch size is defined bycount
param.- Specified by:
iterator
in interfaceRTimeSeries<V,
L> - Parameters:
count
- - size of elements batch- Returns:
- iterator
-
iterator
-
stream
Description copied from interface:RTimeSeries
Returns stream of elements in this time-series collection. Elements are loaded in batch. Batch size is 10.- Specified by:
stream
in interfaceRTimeSeries<V,
L> - Returns:
- stream of elements
-
stream
Description copied from interface:RTimeSeries
Returns stream of elements in this time-series collection. Elements are loaded in batch. Batch size is defined bycount
param.- Specified by:
stream
in interfaceRTimeSeries<V,
L> - Parameters:
count
- - size of elements batch- Returns:
- stream of elements
-
destroy
public void destroy()Description copied from interface:RDestroyable
Destroys object when it's not necessary anymore.- Specified by:
destroy
in interfaceRDestroyable
-
deleteAsync
Description copied from interface:RObjectAsync
Delete object in async mode- Specified by:
deleteAsync
in interfaceRObjectAsync
- Overrides:
deleteAsync
in classRedissonObject
- Returns:
true
if object was deletedfalse
if not
-
expireAsync
-
expireAtAsync
-
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
-
sizeInMemoryAsync
Description copied from interface:RObjectAsync
Returns bytes amount used by object in Redis memory.- Specified by:
sizeInMemoryAsync
in interfaceRObjectAsync
- Overrides:
sizeInMemoryAsync
in classRedissonObject
- Returns:
- size in bytes
-
expire
Description copied from interface:RExpirable
UseRExpirable.expire(Duration)
instead- 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
Description copied from interface:RExpirableAsync
UseRExpirableAsync.expireAsync(Duration)
instead- 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
UseRExpirable.expire(Instant)
instead- Specified by:
expireAt
in interfaceRExpirable
- Parameters:
timestamp
- - expire date in milliseconds (Unix timestamp)- Returns:
true
if the timeout was set andfalse
if not
-
expireAtAsync
Description copied from interface:RExpirableAsync
UseRExpirableAsync.expireAsync(Instant)
instead- Specified by:
expireAtAsync
in interfaceRExpirableAsync
- Parameters:
timestamp
- - expire date in milliseconds (Unix timestamp)- Returns:
true
if the timeout was set andfalse
if not
-
expire
Description copied from interface:RExpirable
Sets an expiration date for this object. When expire date comes the key will automatically be deleted.- Specified by:
expire
in interfaceRExpirable
- Parameters:
instant
- expire date- Returns:
true
if the timeout was set andfalse
if not
-
expireIfSet
Description copied from interface:RExpirable
Sets 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:
expireIfSet
in interfaceRExpirable
- Parameters:
time
- expire date- Returns:
true
if the timeout was set andfalse
if not
-
expireIfSetAsync
Description copied from interface:RExpirableAsync
Sets 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:
expireIfSetAsync
in interfaceRExpirableAsync
- Parameters:
time
- expire date- Returns:
true
if the timeout was set andfalse
if not
-
expireIfNotSet
Description copied from interface:RExpirable
Sets 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:
expireIfNotSet
in interfaceRExpirable
- Parameters:
time
- expire date- Returns:
true
if the timeout was set andfalse
if not
-
expireIfNotSetAsync
Description copied from interface:RExpirableAsync
Sets 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:
expireIfNotSetAsync
in interfaceRExpirableAsync
- Parameters:
time
- expire date- Returns:
true
if the timeout was set andfalse
if not
-
expireIfGreater
Description copied from interface:RExpirable
Sets 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:
expireIfGreater
in interfaceRExpirable
- Parameters:
time
- expire date- Returns:
true
if the timeout was set andfalse
if not
-
expireIfGreaterAsync
Description copied from interface:RExpirableAsync
Sets 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:
expireIfGreaterAsync
in interfaceRExpirableAsync
- Parameters:
time
- expire date- Returns:
true
if the timeout was set andfalse
if not
-
expireIfLess
Description copied from interface:RExpirable
Sets 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:
expireIfLess
in interfaceRExpirable
- Parameters:
time
- expire date- Returns:
true
if the timeout was set andfalse
if not
-
expireIfLessAsync
Description copied from interface:RExpirableAsync
Sets 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:
expireIfLessAsync
in interfaceRExpirableAsync
- Parameters:
time
- expire date- Returns:
true
if the timeout was set andfalse
if not
-
expireAsync
Description copied from interface:RExpirableAsync
Set an expire date for object. When expire date comes the key will automatically be deleted.- Specified by:
expireAsync
in interfaceRExpirableAsync
- Parameters:
instant
- - expire date- Returns:
true
if the timeout was set andfalse
if not
-
expire
Description copied from interface:RExpirable
Sets a timeout for this object. After the timeout has expired, the key will automatically be deleted.- Specified by:
expire
in interfaceRExpirable
- Parameters:
duration
- timeout before object will be deleted- Returns:
true
if the timeout was set andfalse
if not
-
expireAsync
Description copied from interface:RExpirableAsync
Set a timeout for object. After the timeout has expired, the key will automatically be deleted.- Specified by:
expireAsync
in interfaceRExpirableAsync
- Parameters:
duration
- timeout before object will be deleted- Returns:
true
if the timeout was set andfalse
if not
-
expireAt
Description copied from interface:RExpirable
UseRExpirable.expire(Instant)
instead- Specified by:
expireAt
in interfaceRExpirable
- Parameters:
timestamp
- - expire date- Returns:
true
if the timeout was set andfalse
if not
-
expireAtAsync
Description copied from interface:RExpirableAsync
UseRExpirableAsync.expireAsync(Instant)
instead- Specified by:
expireAtAsync
in interfaceRExpirableAsync
- Parameters:
timestamp
- - expire date- Returns:
true
if the timeout was set andfalse
if not
-
expireIfSet
Description copied from interface:RExpirable
Sets 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:
expireIfSet
in interfaceRExpirable
- Parameters:
duration
- timeout before object will be deleted- Returns:
true
if the timeout was set andfalse
if not
-
expireIfSetAsync
Description copied from interface:RExpirableAsync
Sets 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:
expireIfSetAsync
in interfaceRExpirableAsync
- Parameters:
duration
- timeout before object will be deleted- Returns:
true
if the timeout was set andfalse
if not
-
expireIfNotSet
Description copied from interface:RExpirable
Sets 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:
expireIfNotSet
in interfaceRExpirable
- Parameters:
duration
- timeout before object will be deleted- Returns:
true
if the timeout was set andfalse
if not
-
expireIfNotSetAsync
Description copied from interface:RExpirableAsync
Sets 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:
expireIfNotSetAsync
in interfaceRExpirableAsync
- Parameters:
duration
- timeout before object will be deleted- Returns:
true
if the timeout was set andfalse
if not
-
expireIfGreater
Description copied from interface:RExpirable
Sets 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:
expireIfGreater
in interfaceRExpirable
- Parameters:
duration
- timeout before object will be deleted- Returns:
true
if the timeout was set andfalse
if not
-
expireIfGreaterAsync
Description copied from interface:RExpirableAsync
Sets 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:
expireIfGreaterAsync
in interfaceRExpirableAsync
- Parameters:
duration
- timeout before object will be deleted- Returns:
true
if the timeout was set andfalse
if not
-
expireIfLess
Description copied from interface:RExpirable
Sets 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:
expireIfLess
in interfaceRExpirable
- Parameters:
duration
- timeout before object will be deleted- Returns:
true
if the timeout was set andfalse
if not
-
expireIfLessAsync
Description copied from interface:RExpirableAsync
Sets 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:
expireIfLessAsync
in interfaceRExpirableAsync
- Parameters:
duration
- timeout before object will be deleted- 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
-
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
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.
-
getExpireTime
public long getExpireTime()Description copied from interface:RExpirable
Expiration time of Redisson object that has a timeoutRequires Redis 7.0.0 and higher.
- Specified by:
getExpireTime
in interfaceRExpirable
- Returns:
- expiration time
-
getExpireTimeAsync
Description copied from interface:RExpirableAsync
Expiration time of Redisson object that has a timeoutRequires Redis 7.0.0 and higher.
- Specified by:
getExpireTimeAsync
in interfaceRExpirableAsync
- Returns:
- expiration time
-
clearExpireAsync
-