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<Void> |
addLastAsync(V e)
Adds element at the tail of this deque.
|
RFuture<V> |
getLastAsync()
Returns element at the tail of this deque
or
null if there are no elements in 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 |
offerAsync, peekAsync, pollAsync, pollAsync, pollLastAndOfferFirstToAsync, readAllAsyncaddAllAsync, addAsync, containsAllAsync, containsAsync, removeAllAsync, removeAsync, retainAllAsync, sizeAsyncclearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsyncaddListenerAsync, copyAsync, deleteAsync, dumpAsync, isExistsAsync, migrateAsync, moveAsync, removeListenerAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, touchAsync, unlinkAsyncRFuture<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.Copyright © 2014–2019 Redisson. All rights reserved.