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<V> |
pollLastAsync()
Retrieves and removes element at the tail of this deque.
|
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, pollLastAndOfferFirstToAsync, readAllAsync
addAllAsync, addAsync, containsAllAsync, containsAsync, removeAllAsync, removeAsync, retainAllAsync, sizeAsync
clearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsync
copyAsync, deleteAsync, dumpAsync, isExistsAsync, migrateAsync, moveAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, touchAsync, unlinkAsync
RFuture<Boolean> removeLastOccurrenceAsync(Object o)
o
o
- - elementtrue
if object has been removed otherwise false
RFuture<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)
o
o
- - element to removetrue
if object has been removed otherwise false
RFuture<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 false
RFuture<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 addCopyright © 2014–2018 The Redisson Project. All rights reserved.