public interface RTimeSeriesAsync<V> extends RExpirableAsync
Modifier and Type | Method and Description |
---|---|
RFuture<Void> |
addAllAsync(Map<Long,V> objects)
Adds all elements contained in the specified map to this time-series collection.
|
RFuture<Void> |
addAllAsync(Map<Long,V> objects,
long timeToLive,
TimeUnit timeUnit)
Adds all elements contained in the specified map to this time-series collection.
|
RFuture<Void> |
addAsync(long timestamp,
V object)
Adds element to this time-series collection
by specified
timestamp . |
RFuture<Void> |
addAsync(long timestamp,
V object,
long timeToLive,
TimeUnit timeUnit)
Adds element to this time-series collection
by specified
timestamp . |
RFuture<Collection<TimeSeriesEntry<V>>> |
entryRangeAsync(long startTimestamp,
long endTimestamp)
Returns ordered entries of this time-series collection within timestamp range.
|
RFuture<Collection<TimeSeriesEntry<V>>> |
entryRangeReversedAsync(long startTimestamp,
long endTimestamp)
Returns entries of this time-series collection in reverse order within timestamp range.
|
RFuture<V> |
firstAsync()
Returns the head element or
null if this time-series collection is empty. |
RFuture<Collection<V>> |
firstAsync(int count)
Returns the head elements of this time-series collection.
|
RFuture<Long> |
firstTimestampAsync()
Returns timestamp of the head timestamp or
null if this time-series collection is empty. |
RFuture<V> |
getAsync(long timestamp)
Returns object by specified
timestamp or null if it doesn't exist. |
RFuture<V> |
lastAsync()
Returns the tail element or
null if this time-series collection is empty. |
RFuture<Collection<V>> |
lastAsync(int count)
Returns the tail elements of this time-series collection.
|
RFuture<Long> |
lastTimestampAsync()
Returns timestamp of the tail element or
null if this time-series collection is empty. |
RFuture<V> |
pollFirstAsync()
Removes and returns the head element or
null if this time-series collection is empty. |
RFuture<Collection<V>> |
pollFirstAsync(int count)
Removes and returns the head elements or
null if this time-series collection is empty. |
RFuture<V> |
pollLastAsync()
Removes and returns the tail element or
null if this time-series collection is empty. |
RFuture<Collection<V>> |
pollLastAsync(int count)
Removes and returns the tail elements or
null if this time-series collection is empty. |
RFuture<Collection<V>> |
rangeAsync(long startTimestamp,
long endTimestamp)
Returns ordered elements of this time-series collection within timestamp range.
|
RFuture<Collection<V>> |
rangeReversedAsync(long startTimestamp,
long endTimestamp)
Returns elements of this time-series collection in reverse order within timestamp range.
|
RFuture<Boolean> |
removeAsync(long timestamp)
Removes object by specified
timestamp . |
RFuture<Integer> |
removeRangeAsync(long startTimestamp,
long endTimestamp)
Removes values within timestamp range.
|
RFuture<Integer> |
sizeAsync()
Returns size of this set.
|
clearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsync
addListenerAsync, copyAsync, deleteAsync, dumpAsync, isExistsAsync, migrateAsync, moveAsync, removeListenerAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, touchAsync, unlinkAsync
RFuture<Void> addAsync(long timestamp, V object)
timestamp
.timestamp
- - object timestampobject
- - object itselfRFuture<Void> addAllAsync(Map<Long,V> objects)
objects
- - map of elements to addRFuture<Void> addAsync(long timestamp, V object, long timeToLive, TimeUnit timeUnit)
timestamp
.timestamp
- - object timestampobject
- - object itselftimeToLive
- - time to live intervaltimeUnit
- - unit of time to live intervalRFuture<Void> addAllAsync(Map<Long,V> objects, long timeToLive, TimeUnit timeUnit)
objects
- - map of elements to addtimeToLive
- - time to live intervaltimeUnit
- - unit of time to live intervalRFuture<V> getAsync(long timestamp)
timestamp
or null
if it doesn't exist.timestamp
- - object timestampRFuture<Boolean> removeAsync(long timestamp)
timestamp
.timestamp
- - object timestamptrue
if an element was removed as a result of this callRFuture<Collection<V>> pollFirstAsync(int count)
null
if this time-series collection is empty.count
- - elements amountnull
if this time-series collection is emptyRFuture<Collection<V>> pollLastAsync(int count)
null
if this time-series collection is empty.count
- - elements amountnull
if this time-series collection is emptyRFuture<V> pollFirstAsync()
null
if this time-series collection is empty.null
if this time-series collection is emptyRFuture<V> pollLastAsync()
null
if this time-series collection is empty.null
if this time-series collection is emptyRFuture<V> lastAsync()
null
if this time-series collection is empty.null
if this time-series collection is emptyRFuture<V> firstAsync()
null
if this time-series collection is empty.null
if this time-series collection is emptyRFuture<Long> firstTimestampAsync()
null
if this time-series collection is empty.null
if this time-series collection is emptyRFuture<Long> lastTimestampAsync()
null
if this time-series collection is empty.null
if this time-series collection is emptyRFuture<Collection<V>> lastAsync(int count)
count
- - elements amountRFuture<Collection<V>> firstAsync(int count)
count
- - elements amountRFuture<Integer> removeRangeAsync(long startTimestamp, long endTimestamp)
startTimestamp
- - start timestampendTimestamp
- - end timestampRFuture<Collection<V>> rangeAsync(long startTimestamp, long endTimestamp)
startTimestamp
- - start timestampendTimestamp
- - end timestampRFuture<Collection<V>> rangeReversedAsync(long startTimestamp, long endTimestamp)
startTimestamp
- - start timestampendTimestamp
- - end timestampRFuture<Collection<TimeSeriesEntry<V>>> entryRangeAsync(long startTimestamp, long endTimestamp)
startTimestamp
- - start timestampendTimestamp
- - end timestampRFuture<Collection<TimeSeriesEntry<V>>> entryRangeReversedAsync(long startTimestamp, long endTimestamp)
startTimestamp
- - start timestampendTimestamp
- - end timestampCopyright © 2014–2020 Redisson. All rights reserved.