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<Void> |
setCapacityAsync(int capacity)
Sets capacity of the queue and overrides current value.
|
RFuture<Boolean> |
trySetCapacityAsync(int capacity)
Sets capacity of the queue only if it wasn't set before.
|
addListenerAsync, offerAsync, peekAsync, pollAsync, pollAsync, pollLastAndOfferFirstToAsync, readAllAsyncaddAllAsync, addAsync, containsAllAsync, containsAsync, removeAllAsync, removeAsync, retainAllAsync, sizeAsyncclearExpireAsync, expireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsynccopyAsync, deleteAsync, dumpAsync, getIdleTimeAsync, isExistsAsync, migrateAsync, moveAsync, removeListenerAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, touchAsync, unlinkAsyncRFuture<Boolean> trySetCapacityAsync(int capacity)
capacity - - queue capacitytrue if capacity set successfully
false if capacity already setRFuture<Void> setCapacityAsync(int capacity)
capacity - - queue capacityRFuture<Integer> remainingCapacityAsync()
Copyright © 2014–2021 Redisson. All rights reserved.