V
- value typepublic interface RPriorityQueue<V> extends RQueue<V>, RObject
Modifier and Type | Method and Description |
---|---|
Comparator<? super V> |
comparator()
Returns comparator used by this queue
|
V |
pollLastAndOfferFirstTo(String queueName)
Retrieves and removes last available tail element of this queue queue and adds it at the head of
queueName . |
List<V> |
readAll()
Returns all queue elements at once
|
boolean |
trySetComparator(Comparator<? super V> comparator)
Sets new comparator only if current set is empty
|
addListener, poll
addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray
clearExpire, expire, expireAt, expireAt, remainTimeToLive
copy, delete, dump, getCodec, getIdleTime, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlink
addListenerAsync, offerAsync, peekAsync, pollAsync, pollAsync, pollLastAndOfferFirstToAsync, readAllAsync
addAllAsync, addAsync, containsAllAsync, containsAsync, removeAllAsync, removeAsync, retainAllAsync, sizeAsync
clearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsync
copyAsync, deleteAsync, dumpAsync, getIdleTimeAsync, isExistsAsync, migrateAsync, moveAsync, removeListenerAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, touchAsync, unlinkAsync
Comparator<? super V> comparator()
V pollLastAndOfferFirstTo(String queueName)
queueName
.pollLastAndOfferFirstTo
in interface RQueue<V>
queueName
- - names of destination queuenull
if the
specified waiting time elapses before an element is availableboolean trySetComparator(Comparator<? super V> comparator)
comparator
- for valuestrue
if new comparator setted
false
otherwiseCopyright © 2014–2020 Redisson. All rights reserved.