Package org.redisson.api
Interface RPriorityQueue<V>
-
- Type Parameters:
V
- value type
- All Superinterfaces:
Collection<V>
,Iterable<V>
,Queue<V>
,RObject
,RObjectAsync
- All Known Subinterfaces:
RPriorityBlockingDeque<V>
,RPriorityBlockingQueue<V>
,RPriorityDeque<V>
- All Known Implementing Classes:
RedissonPriorityBlockingDeque
,RedissonPriorityBlockingQueue
,RedissonPriorityDeque
,RedissonPriorityQueue
public interface RPriorityQueue<V> extends Queue<V>, RObject
- Author:
- Nikita Koksharov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Comparator<? super V>
comparator()
V
pollLastAndOfferFirstTo(String dequeName)
List<V>
readAll()
boolean
trySetComparator(Comparator<? super V> comparator)
Sets new comparator only if current set is empty-
Methods inherited from interface java.util.Collection
addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray, toArray
-
Methods inherited from interface org.redisson.api.RObject
copy, delete, dump, getCodec, getName, isExists, migrate, move, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlink
-
Methods inherited from interface org.redisson.api.RObjectAsync
copyAsync, deleteAsync, dumpAsync, isExistsAsync, migrateAsync, moveAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, touchAsync, unlinkAsync
-
-
-
-
Method Detail
-
comparator
Comparator<? super V> comparator()
-
trySetComparator
boolean trySetComparator(Comparator<? super V> comparator)
Sets new comparator only if current set is empty- Parameters:
comparator
- for values- Returns:
true
if new comparator settedfalse
otherwise
-
-