public interface RTimeSeriesRx<V> extends RExpirableRx
Modifier and Type | Method and Description |
---|---|
io.reactivex.Completable |
add(long timestamp,
V object)
Adds element to this time-series collection
by specified
timestamp . |
io.reactivex.Completable |
add(long timestamp,
V object,
long timeToLive,
TimeUnit timeUnit)
Adds element to this time-series collection
by specified
timestamp . |
io.reactivex.Completable |
addAll(Map<Long,V> objects)
Adds all elements contained in the specified map to this time-series collection.
|
io.reactivex.Completable |
addAll(Map<Long,V> objects,
long timeToLive,
TimeUnit timeUnit)
Adds all elements contained in the specified map to this time-series collection.
|
io.reactivex.Single<Collection<TimeSeriesEntry<V>>> |
entryRange(long startTimestamp,
long endTimestamp)
Returns ordered entries of this time-series collection within timestamp range.
|
io.reactivex.Single<Collection<TimeSeriesEntry<V>>> |
entryRangeReversed(long startTimestamp,
long endTimestamp)
Returns entries of this time-series collection in reverse order within timestamp range.
|
io.reactivex.Maybe<V> |
first()
Returns the head element or
null if this time-series collection is empty. |
io.reactivex.Single<Collection<V>> |
first(int count)
Returns the head elements of this time-series collection.
|
io.reactivex.Single<Long> |
firstTimestamp()
Returns timestamp of the head timestamp or
null if this time-series collection is empty. |
io.reactivex.Maybe<V> |
get(long timestamp)
Returns object by specified
timestamp or null if it doesn't exist. |
io.reactivex.Flowable<V> |
iterator()
Returns iterator over collection elements
|
io.reactivex.Maybe<V> |
last()
Returns the tail element or
null if this time-series collection is empty. |
io.reactivex.Single<Collection<V>> |
last(int count)
Returns the tail elements of this time-series collection.
|
io.reactivex.Single<Long> |
lastTimestamp()
Returns timestamp of the tail element or
null if this time-series collection is empty. |
io.reactivex.Maybe<V> |
pollFirst()
Removes and returns the head element or
null if this time-series collection is empty. |
io.reactivex.Single<Collection<V>> |
pollFirst(int count)
Removes and returns the head elements or
null if this time-series collection is empty. |
io.reactivex.Maybe<V> |
pollLast()
Removes and returns the tail element or
null if this time-series collection is empty. |
io.reactivex.Single<Collection<V>> |
pollLast(int count)
Removes and returns the tail elements or
null if this time-series collection is empty. |
io.reactivex.Single<Collection<V>> |
range(long startTimestamp,
long endTimestamp)
Returns ordered elements of this time-series collection within timestamp range.
|
io.reactivex.Single<Collection<V>> |
rangeReversed(long startTimestamp,
long endTimestamp)
Returns elements of this time-series collection in reverse order within timestamp range.
|
io.reactivex.Single<Boolean> |
remove(long timestamp)
Removes object by specified
timestamp . |
io.reactivex.Single<Integer> |
removeRange(long startTimestamp,
long endTimestamp)
Removes values within timestamp range.
|
io.reactivex.Single<Integer> |
size()
Returns size of this set.
|
clearExpire, expire, expireAt, expireAt, remainTimeToLive
addListener, copy, delete, dump, getCodec, getIdleTime, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlink
io.reactivex.Flowable<V> iterator()
io.reactivex.Completable add(long timestamp, V object)
timestamp
.timestamp
- - object timestampobject
- - object itselfio.reactivex.Completable addAll(Map<Long,V> objects)
objects
- - map of elements to addio.reactivex.Completable add(long timestamp, V object, long timeToLive, TimeUnit timeUnit)
timestamp
.timestamp
- - object timestampobject
- - object itselftimeToLive
- - time to live intervaltimeUnit
- - unit of time to live intervalio.reactivex.Completable addAll(Map<Long,V> objects, long timeToLive, TimeUnit timeUnit)
objects
- - map of elements to addtimeToLive
- - time to live intervaltimeUnit
- - unit of time to live intervalio.reactivex.Single<Integer> size()
io.reactivex.Maybe<V> get(long timestamp)
timestamp
or null
if it doesn't exist.timestamp
- - object timestampio.reactivex.Single<Boolean> remove(long timestamp)
timestamp
.timestamp
- - object timestamptrue
if an element was removed as a result of this callio.reactivex.Single<Collection<V>> pollFirst(int count)
null
if this time-series collection is empty.count
- - elements amountnull
if this time-series collection is emptyio.reactivex.Single<Collection<V>> pollLast(int count)
null
if this time-series collection is empty.count
- - elements amountnull
if this time-series collection is emptyio.reactivex.Maybe<V> pollFirst()
null
if this time-series collection is empty.null
if this time-series collection is emptyio.reactivex.Maybe<V> pollLast()
null
if this time-series collection is empty.null
if this time-series collection is emptyio.reactivex.Maybe<V> last()
null
if this time-series collection is empty.null
if this time-series collection is emptyio.reactivex.Maybe<V> first()
null
if this time-series collection is empty.null
if this time-series collection is emptyio.reactivex.Single<Long> firstTimestamp()
null
if this time-series collection is empty.null
if this time-series collection is emptyio.reactivex.Single<Long> lastTimestamp()
null
if this time-series collection is empty.null
if this time-series collection is emptyio.reactivex.Single<Collection<V>> last(int count)
count
- - elements amountio.reactivex.Single<Collection<V>> first(int count)
count
- - elements amountio.reactivex.Single<Integer> removeRange(long startTimestamp, long endTimestamp)
startTimestamp
- - start timestampendTimestamp
- - end timestampio.reactivex.Single<Collection<V>> range(long startTimestamp, long endTimestamp)
startTimestamp
- - start timestampendTimestamp
- - end timestampio.reactivex.Single<Collection<V>> rangeReversed(long startTimestamp, long endTimestamp)
startTimestamp
- - start timestampendTimestamp
- - end timestampio.reactivex.Single<Collection<TimeSeriesEntry<V>>> entryRange(long startTimestamp, long endTimestamp)
startTimestamp
- - start timestampendTimestamp
- - end timestampio.reactivex.Single<Collection<TimeSeriesEntry<V>>> entryRangeReversed(long startTimestamp, long endTimestamp)
startTimestamp
- - start timestampendTimestamp
- - end timestampCopyright © 2014–2020 Redisson. All rights reserved.