public class RedissonLexSortedSet extends RedissonScoredSortedSet<String> implements RLexSortedSet
RScoredSortedSet.Aggregatecodec, commandExecutor| Constructor and Description |
|---|
RedissonLexSortedSet(CommandAsyncExecutor commandExecutor,
String name,
RedissonClient redisson) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(String e) |
boolean |
addAll(Collection<? extends String> c) |
RFuture<Boolean> |
addAllAsync(Collection<? extends String> c) |
RFuture<Boolean> |
addAsync(String e) |
boolean |
clearExpire()
Clear an expire timeout or expire date for object.
|
RFuture<Boolean> |
clearExpireAsync()
Clear an expire timeout or expire date for object in async mode.
|
Comparator<? super String> |
comparator() |
int |
count(String fromElement,
boolean fromInclusive,
String toElement,
boolean toInclusive) |
RFuture<Integer> |
countAsync(String fromElement,
boolean fromInclusive,
String toElement,
boolean toInclusive) |
int |
countHead(String toElement,
boolean toInclusive) |
RFuture<Integer> |
countHeadAsync(String toElement,
boolean toInclusive) |
int |
countTail(String fromElement,
boolean fromInclusive) |
RFuture<Integer> |
countTailAsync(String fromElement,
boolean fromInclusive) |
boolean |
expire(long timeToLive,
TimeUnit timeUnit)
Set a timeout for object.
|
RFuture<Boolean> |
expireAsync(long timeToLive,
TimeUnit timeUnit)
Set a timeout for object in async mode.
|
boolean |
expireAt(Date timestamp)
Set an expire date for object.
|
boolean |
expireAt(long timestamp)
Set an expire date for object.
|
RFuture<Boolean> |
expireAtAsync(Date timestamp)
Set an expire date for object in async mode.
|
RFuture<Boolean> |
expireAtAsync(long timestamp)
Set an expire date for object in async mode.
|
SortedSet<String> |
headSet(String toElement) |
Collection<String> |
range(int startIndex,
int endIndex) |
Collection<String> |
range(String fromElement,
boolean fromInclusive,
String toElement,
boolean toInclusive) |
Collection<String> |
range(String fromElement,
boolean fromInclusive,
String toElement,
boolean toInclusive,
int offset,
int count) |
RFuture<Collection<String>> |
rangeAsync(int startIndex,
int endIndex) |
RFuture<Collection<String>> |
rangeAsync(String fromElement,
boolean fromInclusive,
String toElement,
boolean toInclusive) |
RFuture<Collection<String>> |
rangeAsync(String fromElement,
boolean fromInclusive,
String toElement,
boolean toInclusive,
int offset,
int count) |
Collection<String> |
rangeHead(String toElement,
boolean toInclusive) |
Collection<String> |
rangeHead(String toElement,
boolean toInclusive,
int offset,
int count) |
RFuture<Collection<String>> |
rangeHeadAsync(String toElement,
boolean toInclusive) |
RFuture<Collection<String>> |
rangeHeadAsync(String toElement,
boolean toInclusive,
int offset,
int count) |
Collection<String> |
rangeHeadReversed(String toElement,
boolean toInclusive) |
Collection<String> |
rangeHeadReversed(String toElement,
boolean toInclusive,
int offset,
int count) |
RFuture<Collection<String>> |
rangeHeadReversedAsync(String toElement,
boolean toInclusive) |
RFuture<Collection<String>> |
rangeHeadReversedAsync(String toElement,
boolean toInclusive,
int offset,
int count) |
Collection<String> |
rangeReversed(String fromElement,
boolean fromInclusive,
String toElement,
boolean toInclusive) |
Collection<String> |
rangeReversed(String fromElement,
boolean fromInclusive,
String toElement,
boolean toInclusive,
int offset,
int count) |
RFuture<Collection<String>> |
rangeReversedAsync(String fromElement,
boolean fromInclusive,
String toElement,
boolean toInclusive) |
RFuture<Collection<String>> |
rangeReversedAsync(String fromElement,
boolean fromInclusive,
String toElement,
boolean toInclusive,
int offset,
int count) |
Collection<String> |
rangeTail(String fromElement,
boolean fromInclusive) |
Collection<String> |
rangeTail(String fromElement,
boolean fromInclusive,
int offset,
int count) |
RFuture<Collection<String>> |
rangeTailAsync(String fromElement,
boolean fromInclusive) |
RFuture<Collection<String>> |
rangeTailAsync(String fromElement,
boolean fromInclusive,
int offset,
int count) |
Collection<String> |
rangeTailReversed(String fromElement,
boolean fromInclusive) |
Collection<String> |
rangeTailReversed(String fromElement,
boolean fromInclusive,
int offset,
int count) |
RFuture<Collection<String>> |
rangeTailReversedAsync(String fromElement,
boolean fromInclusive) |
RFuture<Collection<String>> |
rangeTailReversedAsync(String fromElement,
boolean fromInclusive,
int offset,
int count) |
long |
remainTimeToLive()
Remaining time to live of Redisson object that has a timeout
|
RFuture<Long> |
remainTimeToLiveAsync()
Remaining time to live of Redisson object that has a timeout
|
int |
removeRange(String fromElement,
boolean fromInclusive,
String toElement,
boolean toInclusive) |
RFuture<Integer> |
removeRangeAsync(String fromElement,
boolean fromInclusive,
String toElement,
boolean toInclusive) |
int |
removeRangeHead(String toElement,
boolean toInclusive) |
RFuture<Integer> |
removeRangeHeadAsync(String toElement,
boolean toInclusive) |
int |
removeRangeTail(String fromElement,
boolean fromInclusive) |
RFuture<Integer> |
removeRangeTailAsync(String fromElement,
boolean fromInclusive) |
SortedSet<String> |
subSet(String fromElement,
String toElement) |
SortedSet<String> |
tailSet(String fromElement) |
boolean |
trySetComparator(Comparator<? super String> comparator)
Sets new comparator only if current set is empty
|
add, addAll, addAllAsync, addAndGetRank, addAndGetRankAsync, addAndGetRevRank, addAndGetRevRankAsync, addAsync, addScore, addScoreAndGetRank, addScoreAndGetRankAsync, addScoreAndGetRevRank, addScoreAndGetRevRankAsync, addScoreAsync, clear, contains, containsAll, containsAllAsync, containsAsync, count, countAsync, entryRange, entryRange, entryRange, entryRangeAsync, entryRangeAsync, entryRangeAsync, entryRangeReversed, entryRangeReversed, entryRangeReversed, entryRangeReversedAsync, entryRangeReversedAsync, entryRangeReversedAsync, first, firstAsync, firstScore, firstScoreAsync, getScore, getScoreAsync, intersection, intersection, intersection, intersection, intersectionAsync, intersectionAsync, intersectionAsync, intersectionAsync, isEmpty, iterator, iterator, iterator, iterator, last, lastAsync, lastScore, lastScoreAsync, mapReduce, pollFirst, pollFirst, pollFirst, pollFirstAsync, pollFirstAsync, pollFirstAsync, pollFirstFromAny, pollFirstFromAnyAsync, pollLast, pollLast, pollLast, pollLastAsync, pollLastAsync, pollLastAsync, pollLastFromAny, pollLastFromAnyAsync, rank, rankAsync, readAll, readAllAsync, readSort, readSort, readSort, readSort, readSort, readSort, readSortAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, remove, removeAll, removeAllAsync, removeAsync, removeRangeByRank, removeRangeByRankAsync, removeRangeByScore, removeRangeByScoreAsync, retainAll, retainAllAsync, revRank, revRankAsync, size, sizeAsync, sortTo, sortTo, sortTo, sortTo, sortTo, sortTo, sortToAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsync, toArray, toArray, tryAdd, tryAddAsync, union, union, union, union, unionAsync, unionAsync, unionAsync, unionAsync, valueRange, valueRange, valueRange, valueRangeAsync, valueRangeAsync, valueRangeAsync, valueRangeReversed, valueRangeReversed, valueRangeReversed, valueRangeReversedAsync, valueRangeReversedAsync, valueRangeReversedAsyncawait, copy, copyAsync, delete, deleteAsync, encode, encode, encode, encodeMapKey, encodeMapKeys, encodeMapValue, encodeMapValues, get, getCodec, getName, getName, isExists, isExistsAsync, migrate, migrateAsync, move, moveAsync, prefixName, rename, renameAsync, renamenx, renamenxAsync, suffixName, toSeconds, touch, touchAsync, unlink, unlinkAsyncclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpollFirst, pollLast, rank, revRankfirstAsync, lastAsync, pollFirstAsync, pollLastAsync, rankAsync, readAllAsync, revRankAsynccontainsAllAsync, containsAsync, removeAllAsync, removeAsync, retainAllAsync, sizeAsyncclearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsynccopyAsync, deleteAsync, isExistsAsync, migrateAsync, moveAsync, renameAsync, renamenxAsync, touchAsync, unlinkAsyncmapReduce, readAll, readAllAsync, removeAsyncfirst, last, spliteratorclear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArrayparallelStream, removeIf, streamclearExpire, expire, expireAt, expireAt, remainTimeToLivepublic RedissonLexSortedSet(CommandAsyncExecutor commandExecutor, String name, RedissonClient redisson)
public int removeRange(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive)
removeRange in interface RLexSortedSetpublic int removeRangeHead(String toElement, boolean toInclusive)
removeRangeHead in interface RLexSortedSetpublic RFuture<Integer> removeRangeHeadAsync(String toElement, boolean toInclusive)
removeRangeHeadAsync in interface RLexSortedSetAsyncpublic int removeRangeTail(String fromElement, boolean fromInclusive)
removeRangeTail in interface RLexSortedSetpublic RFuture<Integer> removeRangeTailAsync(String fromElement, boolean fromInclusive)
removeRangeTailAsync in interface RLexSortedSetAsyncpublic RFuture<Integer> removeRangeAsync(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive)
removeRangeAsync in interface RLexSortedSetAsyncpublic Collection<String> range(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive)
range in interface RLexSortedSetpublic Collection<String> rangeHead(String toElement, boolean toInclusive)
rangeHead in interface RLexSortedSetpublic RFuture<Collection<String>> rangeHeadAsync(String toElement, boolean toInclusive)
rangeHeadAsync in interface RLexSortedSetAsyncpublic Collection<String> rangeTail(String fromElement, boolean fromInclusive)
rangeTail in interface RLexSortedSetpublic RFuture<Collection<String>> rangeTailAsync(String fromElement, boolean fromInclusive)
rangeTailAsync in interface RLexSortedSetAsyncpublic RFuture<Collection<String>> rangeAsync(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive)
rangeAsync in interface RLexSortedSetAsyncpublic Collection<String> range(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive, int offset, int count)
range in interface RLexSortedSetpublic Collection<String> rangeHead(String toElement, boolean toInclusive, int offset, int count)
rangeHead in interface RLexSortedSetpublic RFuture<Collection<String>> rangeHeadAsync(String toElement, boolean toInclusive, int offset, int count)
rangeHeadAsync in interface RLexSortedSetAsyncpublic Collection<String> rangeTail(String fromElement, boolean fromInclusive, int offset, int count)
rangeTail in interface RLexSortedSetpublic RFuture<Collection<String>> rangeTailAsync(String fromElement, boolean fromInclusive, int offset, int count)
rangeTailAsync in interface RLexSortedSetAsyncpublic RFuture<Collection<String>> rangeAsync(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive, int offset, int count)
rangeAsync in interface RLexSortedSetAsyncpublic Collection<String> rangeTailReversed(String fromElement, boolean fromInclusive)
rangeTailReversed in interface RLexSortedSetpublic Collection<String> rangeHeadReversed(String toElement, boolean toInclusive)
rangeHeadReversed in interface RLexSortedSetpublic Collection<String> rangeReversed(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive)
rangeReversed in interface RLexSortedSetpublic Collection<String> rangeTailReversed(String fromElement, boolean fromInclusive, int offset, int count)
rangeTailReversed in interface RLexSortedSetpublic Collection<String> rangeHeadReversed(String toElement, boolean toInclusive, int offset, int count)
rangeHeadReversed in interface RLexSortedSetpublic Collection<String> rangeReversed(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive, int offset, int count)
rangeReversed in interface RLexSortedSetpublic RFuture<Collection<String>> rangeTailReversedAsync(String fromElement, boolean fromInclusive)
rangeTailReversedAsync in interface RLexSortedSetAsyncpublic RFuture<Collection<String>> rangeHeadReversedAsync(String toElement, boolean toInclusive)
rangeHeadReversedAsync in interface RLexSortedSetAsyncpublic RFuture<Collection<String>> rangeReversedAsync(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive)
rangeReversedAsync in interface RLexSortedSetAsyncpublic RFuture<Collection<String>> rangeTailReversedAsync(String fromElement, boolean fromInclusive, int offset, int count)
rangeTailReversedAsync in interface RLexSortedSetAsyncpublic RFuture<Collection<String>> rangeHeadReversedAsync(String toElement, boolean toInclusive, int offset, int count)
rangeHeadReversedAsync in interface RLexSortedSetAsyncpublic RFuture<Collection<String>> rangeReversedAsync(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive, int offset, int count)
rangeReversedAsync in interface RLexSortedSetAsyncpublic int countTail(String fromElement, boolean fromInclusive)
countTail in interface RLexSortedSetpublic RFuture<Integer> countTailAsync(String fromElement, boolean fromInclusive)
countTailAsync in interface RLexSortedSetAsyncpublic int countHead(String toElement, boolean toInclusive)
countHead in interface RLexSortedSetpublic RFuture<Integer> countHeadAsync(String toElement, boolean toInclusive)
countHeadAsync in interface RLexSortedSetAsyncpublic int count(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive)
count in interface RLexSortedSetpublic RFuture<Integer> countAsync(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive)
countAsync in interface RLexSortedSetAsyncpublic RFuture<Boolean> addAsync(String e)
addAsync in interface RCollectionAsync<String>addAsync in interface RSortedSet<String>public RFuture<Boolean> addAllAsync(Collection<? extends String> c)
addAllAsync in interface RCollectionAsync<String>public boolean add(String e)
public boolean addAll(Collection<? extends String> c)
public Collection<String> range(int startIndex, int endIndex)
range in interface RLexSortedSetpublic RFuture<Collection<String>> rangeAsync(int startIndex, int endIndex)
rangeAsync in interface RLexSortedSetAsyncpublic boolean trySetComparator(Comparator<? super String> comparator)
RSortedSettrySetComparator in interface RSortedSet<String>comparator - for valuestrue if new comparator setted
false otherwisepublic Comparator<? super String> comparator()
comparator in interface SortedSet<String>public boolean expire(long timeToLive,
TimeUnit timeUnit)
RExpirableexpire in interface RExpirabletimeToLive - - timeout before object will be deletedtimeUnit - - timeout time unittrue if the timeout was set and false if notpublic RFuture<Boolean> expireAsync(long timeToLive, TimeUnit timeUnit)
RExpirableAsyncexpireAsync in interface RExpirableAsynctimeToLive - - timeout before object will be deletedtimeUnit - - timeout time unittrue if the timeout was set and false if notpublic boolean expireAt(long timestamp)
RExpirableexpireAt in interface RExpirabletimestamp - - expire date in milliseconds (Unix timestamp)true if the timeout was set and false if notpublic RFuture<Boolean> expireAtAsync(long timestamp)
RExpirableAsyncexpireAtAsync in interface RExpirableAsynctimestamp - - expire date in seconds (Unix timestamp)true if the timeout was set and false if notpublic boolean expireAt(Date timestamp)
RExpirableexpireAt in interface RExpirabletimestamp - - expire datetrue if the timeout was set and false if notpublic RFuture<Boolean> expireAtAsync(Date timestamp)
RExpirableAsyncexpireAtAsync in interface RExpirableAsynctimestamp - - expire datetrue if the timeout was set and false if notpublic boolean clearExpire()
RExpirableclearExpire in interface RExpirabletrue if timeout was removed
false if object does not exist or does not have an associated timeoutpublic RFuture<Boolean> clearExpireAsync()
RExpirableAsyncclearExpireAsync in interface RExpirableAsynctrue if the timeout was cleared and false if notpublic long remainTimeToLive()
RExpirableremainTimeToLive in interface RExpirablepublic RFuture<Long> remainTimeToLiveAsync()
RExpirableAsyncremainTimeToLiveAsync in interface RExpirableAsyncCopyright © 2014–2018 The Redisson Project. All rights reserved.