public interface RTimeSeriesReactive<V> extends RExpirableReactive
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<Void> |
add(long timestamp,
V object)
Adds element to this time-series collection
by specified
timestamp. |
reactor.core.publisher.Mono<Void> |
add(long timestamp,
V object,
long timeToLive,
TimeUnit timeUnit)
Adds element to this time-series collection
by specified
timestamp. |
reactor.core.publisher.Mono<Void> |
addAll(Map<Long,V> objects)
Adds all elements contained in the specified map to this time-series collection.
|
reactor.core.publisher.Mono<Void> |
addAll(Map<Long,V> objects,
long timeToLive,
TimeUnit timeUnit)
Adds all elements contained in the specified map to this time-series collection.
|
reactor.core.publisher.Mono<Collection<TimeSeriesEntry<V>>> |
entryRange(long startTimestamp,
long endTimestamp)
Returns ordered entries of this time-series collection within timestamp range.
|
reactor.core.publisher.Mono<Collection<TimeSeriesEntry<V>>> |
entryRangeReversed(long startTimestamp,
long endTimestamp)
Returns entries of this time-series collection in reverse order within timestamp range.
|
reactor.core.publisher.Mono<V> |
first()
Returns the head element or
null if this time-series collection is empty. |
reactor.core.publisher.Mono<Collection<V>> |
first(int count)
Returns the head elements of this time-series collection.
|
reactor.core.publisher.Mono<Long> |
firstTimestamp()
Returns timestamp of the head timestamp or
null if this time-series collection is empty. |
reactor.core.publisher.Mono<V> |
get(long timestamp)
Returns object by specified
timestamp or null if it doesn't exist. |
reactor.core.publisher.Flux<V> |
iterator()
Returns iterator over collection elements
|
reactor.core.publisher.Mono<V> |
last()
Returns the tail element or
null if this time-series collection is empty. |
reactor.core.publisher.Mono<Collection<V>> |
last(int count)
Returns the tail elements of this time-series collection.
|
reactor.core.publisher.Mono<Long> |
lastTimestamp()
Returns timestamp of the tail element or
null if this time-series collection is empty. |
reactor.core.publisher.Mono<V> |
pollFirst()
Removes and returns the head element or
null if this time-series collection is empty. |
reactor.core.publisher.Mono<Collection<V>> |
pollFirst(int count)
Removes and returns the head elements or
null if this time-series collection is empty. |
reactor.core.publisher.Mono<V> |
pollLast()
Removes and returns the tail element or
null if this time-series collection is empty. |
reactor.core.publisher.Mono<Collection<V>> |
pollLast(int count)
Removes and returns the tail elements or
null if this time-series collection is empty. |
reactor.core.publisher.Mono<Collection<V>> |
range(long startTimestamp,
long endTimestamp)
Returns ordered elements of this time-series collection within timestamp range.
|
reactor.core.publisher.Mono<Collection<V>> |
rangeReversed(long startTimestamp,
long endTimestamp)
Returns elements of this time-series collection in reverse order within timestamp range.
|
reactor.core.publisher.Mono<Boolean> |
remove(long timestamp)
Removes object by specified
timestamp. |
reactor.core.publisher.Mono<Integer> |
removeRange(long startTimestamp,
long endTimestamp)
Removes values within timestamp range.
|
reactor.core.publisher.Mono<Integer> |
size()
Returns size of this set.
|
clearExpire, expire, expireAt, expireAt, expireAt, remainTimeToLiveaddListener, copy, delete, dump, getCodec, getIdleTime, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlinkreactor.core.publisher.Flux<V> iterator()
reactor.core.publisher.Mono<Void> add(long timestamp, V object)
timestamp.timestamp - - object timestampobject - - object itselfreactor.core.publisher.Mono<Void> addAll(Map<Long,V> objects)
objects - - map of elements to addreactor.core.publisher.Mono<Void> add(long timestamp, V object, long timeToLive, TimeUnit timeUnit)
timestamp.timestamp - - object timestampobject - - object itselftimeToLive - - time to live intervaltimeUnit - - unit of time to live intervalreactor.core.publisher.Mono<Void> addAll(Map<Long,V> objects, long timeToLive, TimeUnit timeUnit)
objects - - map of elements to addtimeToLive - - time to live intervaltimeUnit - - unit of time to live intervalreactor.core.publisher.Mono<Integer> size()
reactor.core.publisher.Mono<V> get(long timestamp)
timestamp or null if it doesn't exist.timestamp - - object timestampreactor.core.publisher.Mono<Boolean> remove(long timestamp)
timestamp.timestamp - - object timestamptrue if an element was removed as a result of this callreactor.core.publisher.Mono<Collection<V>> pollFirst(int count)
null if this time-series collection is empty.count - - elements amountnull if this time-series collection is emptyreactor.core.publisher.Mono<Collection<V>> pollLast(int count)
null if this time-series collection is empty.count - - elements amountnull if this time-series collection is emptyreactor.core.publisher.Mono<V> pollFirst()
null if this time-series collection is empty.null if this time-series collection is emptyreactor.core.publisher.Mono<V> pollLast()
null if this time-series collection is empty.null if this time-series collection is emptyreactor.core.publisher.Mono<V> last()
null if this time-series collection is empty.null if this time-series collection is emptyreactor.core.publisher.Mono<V> first()
null if this time-series collection is empty.null if this time-series collection is emptyreactor.core.publisher.Mono<Long> firstTimestamp()
null if this time-series collection is empty.null if this time-series collection is emptyreactor.core.publisher.Mono<Long> lastTimestamp()
null if this time-series collection is empty.null if this time-series collection is emptyreactor.core.publisher.Mono<Collection<V>> last(int count)
count - - elements amountreactor.core.publisher.Mono<Collection<V>> first(int count)
count - - elements amountreactor.core.publisher.Mono<Integer> removeRange(long startTimestamp, long endTimestamp)
startTimestamp - - start timestampendTimestamp - - end timestampreactor.core.publisher.Mono<Collection<V>> range(long startTimestamp, long endTimestamp)
startTimestamp - - start timestampendTimestamp - - end timestampreactor.core.publisher.Mono<Collection<V>> rangeReversed(long startTimestamp, long endTimestamp)
startTimestamp - - start timestampendTimestamp - - end timestampreactor.core.publisher.Mono<Collection<TimeSeriesEntry<V>>> entryRange(long startTimestamp, long endTimestamp)
startTimestamp - - start timestampendTimestamp - - end timestampreactor.core.publisher.Mono<Collection<TimeSeriesEntry<V>>> entryRangeReversed(long startTimestamp, long endTimestamp)
startTimestamp - - start timestampendTimestamp - - end timestampCopyright © 2014–2021 Redisson. All rights reserved.