V
- value typepublic interface RRingBufferRx<V> extends RQueueRx<V>
The head element removed if new element added and queue is full.
Must be initialized with capacity size trySetCapacity(int)
before usage.
Modifier and Type | Method and Description |
---|---|
io.reactivex.Single<Integer> |
capacity()
Returns capacity of this queue
|
io.reactivex.Single<Integer> |
remainingCapacity()
Returns remaining capacity of this queue
|
io.reactivex.Single<Boolean> |
trySetCapacity(int capacity)
Sets queue capacity only if it is not set before.
|
offer, peek, poll, pollLastAndOfferFirstTo, readAll
add, addAll, addAll, contains, containsAll, iterator, remove, removeAll, retainAll, size
clearExpire, expire, expireAt, expireAt, remainTimeToLive
addListener, copy, delete, dump, getCodec, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, touch, unlink
io.reactivex.Single<Boolean> trySetCapacity(int capacity)
capacity
- - queue capacitytrue
if capacity set successfully
false
if capacity already setio.reactivex.Single<Integer> remainingCapacity()
io.reactivex.Single<Integer> capacity()
Copyright © 2014–2019 The Redisson Project. All rights reserved.