V - the type of elements held in this collectionpublic interface RDequeAsync<V> extends RQueueAsync<V>
Deque| Modifier and Type | Method and Description |
|---|---|
RFuture<Void> |
addFirstAsync(V e)
Adds element at the head of this deque.
|
RFuture<Integer> |
addFirstIfExistsAsync(V... elements)
Adds element at the head of existing deque.
|
RFuture<Void> |
addLastAsync(V e)
Adds element at the tail of this deque.
|
RFuture<Integer> |
addLastIfExistsAsync(V... elements)
Adds element at the tail of existing deque.
|
RFuture<V> |
getLastAsync()
Returns element at the tail of this deque
or
null if there are no elements in deque. |
RFuture<V> |
moveAsync(DequeMoveArgs args)
Move element from this deque to the given destination deque.
|
RFuture<Boolean> |
offerFirstAsync(V e)
Adds element at the head of this deque.
|
RFuture<Boolean> |
offerLastAsync(V e)
Adds element at the tail of this deque.
|
RFuture<V> |
peekFirstAsync()
Returns element at the head of this deque
or
null if there are no elements in deque. |
RFuture<V> |
peekLastAsync()
Returns element at the tail of this deque
or
null if there are no elements in deque. |
RFuture<V> |
pollFirstAsync()
Retrieves and removes element at the head of this deque.
|
RFuture<List<V>> |
pollFirstAsync(int limit)
Retrieves and removes the head elements of this queue.
|
RFuture<V> |
pollLastAsync()
Retrieves and removes element at the tail of this deque.
|
RFuture<List<V>> |
pollLastAsync(int limit)
Retrieves and removes the tail elements of this queue.
|
RFuture<V> |
popAsync()
Retrieves and removes element at the head of this deque.
|
RFuture<Void> |
pushAsync(V e)
Adds element at the head of this deque.
|
RFuture<V> |
removeFirstAsync()
Retrieves and removes the first element of deque.
|
RFuture<Boolean> |
removeFirstOccurrenceAsync(Object o)
Removes first occurrence of element
o |
RFuture<V> |
removeLastAsync()
Retrieves and removes the last element of deque.
|
RFuture<Boolean> |
removeLastOccurrenceAsync(Object o)
Removes last occurrence of element
o |
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<Integer> addFirstIfExistsAsync(V... elements)
elements - - elements to addRFuture<Integer> addLastIfExistsAsync(V... elements)
elements - - elements to addRFuture<Boolean> removeLastOccurrenceAsync(Object o)
oo - - elementtrue if object has been removed otherwise falseRFuture<V> removeLastAsync()
null if there are no elements in deque.RFuture<V> removeFirstAsync()
null if there are no elements in deque.RFuture<Boolean> removeFirstOccurrenceAsync(Object o)
oo - - element to removetrue if object has been removed otherwise falseRFuture<Void> pushAsync(V e)
e - - element to addRFuture<V> popAsync()
null if there are no elements in deque.RFuture<V> pollLastAsync()
null if there are no elements in deque.RFuture<V> pollFirstAsync()
null if there are no elements in deque.RFuture<V> peekLastAsync()
null if there are no elements in deque.RFuture<V> peekFirstAsync()
null if there are no elements in deque.RFuture<Boolean> offerLastAsync(V e)
e - - element to addtrue if element was added to this deque otherwise falseRFuture<V> getLastAsync()
null if there are no elements in deque.RFuture<Void> addLastAsync(V e)
e - - element to addRFuture<Void> addFirstAsync(V e)
e - - element to addRFuture<Boolean> offerFirstAsync(V e)
e - - element to addtrue if element was added to this deque otherwise falseRFuture<List<V>> pollFirstAsync(int limit)
limit param.RFuture<List<V>> pollLastAsync(int limit)
limit param.RFuture<V> moveAsync(DequeMoveArgs args)
Usage examples:
V element = deque.move(DequeMoveArgs.pollLast()
.addFirstTo("deque2"));
V elements = deque.move(DequeMoveArgs.pollFirst()
.addLastTo("deque2"));
Requires Redis 6.2.0 and higher.
args - - arguments objectCopyright © 2014–2021 Redisson. All rights reserved.