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<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, 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<Integer> addFirstIfExistsAsync(V... elements)
elements
- - elements to addRFuture<Integer> addLastIfExistsAsync(V... elements)
elements
- - elements to addRFuture<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 addRFuture<Boolean> offerFirstAsync(V e)
e
- - element to addtrue
if element was added to this deque otherwise false
RFuture<List<V>> pollFirstAsync(int limit)
limit
param.Copyright © 2014–2020 Redisson. All rights reserved.