V
- the type of elements held in this collectionpublic interface RDeque<V> extends Deque<V>, RQueue<V>, RDequeAsync<V>
Deque
Modifier and Type | Method and Description |
---|---|
int |
addFirstIfExists(V... elements)
Adds element at the head of existing deque.
|
int |
addLastIfExists(V... elements)
Adds element at the tail of existing deque.
|
V |
move(DequeMoveArgs args)
Move element from this deque to the given destination deque.
|
List<V> |
pollFirst(int limit)
Retrieves and removes the head elements of this queue.
|
List<V> |
pollLast(int limit)
Retrieves and removes the tail elements of this queue.
|
add, addFirst, addLast, contains, descendingIterator, element, getFirst, getLast, iterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, size
addListener, poll, pollLastAndOfferFirstTo, readAll
addAll, clear, containsAll, equals, hashCode, isEmpty, parallelStream, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArray
clearExpire, expire, expire, expireAt, expireAt, remainTimeToLive
copy, delete, dump, getCodec, getIdleTime, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlink
addFirstAsync, addFirstIfExistsAsync, addLastAsync, addLastIfExistsAsync, getLastAsync, moveAsync, offerFirstAsync, offerLastAsync, peekFirstAsync, peekLastAsync, pollFirstAsync, pollFirstAsync, pollLastAsync, pollLastAsync, popAsync, pushAsync, removeFirstAsync, removeFirstOccurrenceAsync, removeLastAsync, removeLastOccurrenceAsync
addListenerAsync, offerAsync, peekAsync, pollAsync, pollAsync, pollLastAndOfferFirstToAsync, readAllAsync
addAllAsync, addAsync, containsAllAsync, containsAsync, removeAllAsync, removeAsync, retainAllAsync, sizeAsync
clearExpireAsync, expireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsync
copyAsync, deleteAsync, dumpAsync, getIdleTimeAsync, isExistsAsync, migrateAsync, moveAsync, removeListenerAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, touchAsync, unlinkAsync
int addFirstIfExists(V... elements)
elements
- - elements to addint addLastIfExists(V... elements)
elements
- - elements to addList<V> pollLast(int limit)
limit
param.List<V> pollFirst(int limit)
limit
param.V move(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.