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, sizeaddListener, poll, pollLastAndOfferFirstTo, readAlladdAll, clear, containsAll, equals, hashCode, isEmpty, parallelStream, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArrayclearExpire, expire, expire, expireAt, expireAt, remainTimeToLivecopy, delete, dump, getCodec, getIdleTime, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlinkaddFirstAsync, addFirstIfExistsAsync, addLastAsync, addLastIfExistsAsync, getLastAsync, moveAsync, offerFirstAsync, offerLastAsync, peekFirstAsync, peekLastAsync, pollFirstAsync, pollFirstAsync, pollLastAsync, pollLastAsync, popAsync, pushAsync, removeFirstAsync, removeFirstOccurrenceAsync, removeLastAsync, removeLastOccurrenceAsyncaddListenerAsync, 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, unlinkAsyncint 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.