Package org.redisson.api
Interface RSortedSet<V>
-
- Type Parameters:
V- value type
- All Superinterfaces:
Collection<V>,Iterable<V>,RObject,RObjectAsync,Set<V>,SortedSet<V>
- All Known Subinterfaces:
RLexSortedSet
- All Known Implementing Classes:
RedissonLexSortedSet,RedissonSortedSet
public interface RSortedSet<V> extends SortedSet<V>, RObject
- Author:
- Nikita Koksharov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RFuture<Boolean>addAsync(V value)<KOut,VOut>
RCollectionMapReduce<V,KOut,VOut>mapReduce()ReturnsRMapReduceobject associated with this objectCollection<V>readAll()RFuture<Collection<V>>readAllAsync()RFuture<Boolean>removeAsync(Object value)booleantrySetComparator(Comparator<? super V> comparator)Sets new comparator only if current set is empty-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface org.redisson.api.RObject
addListener, copy, delete, dump, getCodec, getIdleTime, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlink
-
Methods inherited from interface org.redisson.api.RObjectAsync
addListenerAsync, copyAsync, deleteAsync, dumpAsync, getIdleTimeAsync, isExistsAsync, migrateAsync, moveAsync, removeListenerAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, touchAsync, unlinkAsync
-
Methods inherited from interface java.util.Set
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
-
Methods inherited from interface java.util.SortedSet
comparator, first, headSet, last, spliterator, subSet, tailSet
-
-
-
-
Method Detail
-
mapReduce
<KOut,VOut> RCollectionMapReduce<V,KOut,VOut> mapReduce()
ReturnsRMapReduceobject associated with this object- Type Parameters:
KOut- output keyVOut- output value- Returns:
- MapReduce instance
-
readAll
Collection<V> readAll()
-
readAllAsync
RFuture<Collection<V>> readAllAsync()
-
trySetComparator
boolean trySetComparator(Comparator<? super V> comparator)
Sets new comparator only if current set is empty- Parameters:
comparator- for values- Returns:
trueif new comparator settedfalseotherwise
-
-