V
- value typepublic interface RRingBufferAsync<V> extends RQueueAsync<V>
The head element removed if new element added and queue is full.
Must be initialized with capacity size trySetCapacityAsync(int)
before usage.
Modifier and Type | Method and Description |
---|---|
RFuture<Integer> |
capacityAsync()
Returns capacity of this queue
|
RFuture<Integer> |
remainingCapacityAsync()
Returns remaining capacity of this queue
|
RFuture<Boolean> |
trySetCapacityAsync(int capacity)
Sets queue capacity only if it is not set before.
|
addListenerAsync, offerAsync, peekAsync, pollAsync, pollAsync, pollLastAndOfferFirstToAsync, readAllAsync
addAllAsync, addAsync, containsAllAsync, containsAsync, removeAllAsync, removeAsync, retainAllAsync, sizeAsync
clearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsync
copyAsync, deleteAsync, dumpAsync, isExistsAsync, migrateAsync, moveAsync, removeListenerAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, touchAsync, unlinkAsync
RFuture<Boolean> trySetCapacityAsync(int capacity)
capacity
- - queue capacitytrue
if capacity set successfully
false
if capacity already setRFuture<Integer> remainingCapacityAsync()
Copyright © 2014–2020 Redisson. All rights reserved.