public class RedissonLexSortedSet extends RedissonScoredSortedSet<String> implements RLexSortedSet
RScoredSortedSet.Aggregatecodec, commandExecutor, name| 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)
Adds all elements contained in the specified collection
|
RFuture<Boolean> |
addAsync(String e)
Adds element into this collection.
|
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.
|
protected RFuture<Boolean> |
clearExpireAsync(String... keys) |
Comparator<? super String> |
comparator() |
int |
count(String fromElement,
boolean fromInclusive,
String toElement,
boolean toInclusive)
Returns the number of elements between
fromElement and toElement. |
RFuture<Integer> |
countAsync(String fromElement,
boolean fromInclusive,
String toElement,
boolean toInclusive)
Returns the number of elements between
fromElement and toElement. |
int |
countHead(String toElement,
boolean toInclusive)
Returns the number of head values ending with
toElement. |
RFuture<Integer> |
countHeadAsync(String toElement,
boolean toInclusive)
Returns the number of head values ending with
toElement. |
int |
countTail(String fromElement,
boolean fromInclusive)
Returns the number of tail values starting with
fromElement. |
RFuture<Integer> |
countTailAsync(String fromElement,
boolean fromInclusive)
Returns the number of tail values starting with
fromElement. |
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.
|
protected RFuture<Boolean> |
expireAsync(long timeToLive,
TimeUnit timeUnit,
String... keys) |
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.
|
protected RFuture<Boolean> |
expireAtAsync(long timestamp,
String... keys) |
SortedSet<String> |
headSet(String toElement) |
Collection<String> |
range(int startIndex,
int endIndex)
Returns values by rank range.
|
Collection<String> |
range(String fromElement,
boolean fromInclusive,
String toElement,
boolean toInclusive)
Returns values range starting with
fromElement and ending with toElement. |
Collection<String> |
range(String fromElement,
boolean fromInclusive,
String toElement,
boolean toInclusive,
int offset,
int count)
Returns values range starting with
fromElement and ending with toElement. |
RFuture<Collection<String>> |
rangeAsync(int startIndex,
int endIndex)
Returns values by rank range.
|
RFuture<Collection<String>> |
rangeAsync(String fromElement,
boolean fromInclusive,
String toElement,
boolean toInclusive)
Returns values range starting with
fromElement and ending with toElement. |
RFuture<Collection<String>> |
rangeAsync(String fromElement,
boolean fromInclusive,
String toElement,
boolean toInclusive,
int offset,
int count)
Returns values range starting with
fromElement and ending with toElement. |
Collection<String> |
rangeHead(String toElement,
boolean toInclusive)
Returns head values range ending with
toElement. |
Collection<String> |
rangeHead(String toElement,
boolean toInclusive,
int offset,
int count)
Returns head values range ending with
toElement. |
RFuture<Collection<String>> |
rangeHeadAsync(String toElement,
boolean toInclusive)
Returns head values range ending with
toElement. |
RFuture<Collection<String>> |
rangeHeadAsync(String toElement,
boolean toInclusive,
int offset,
int count)
Returns head values range ending with
toElement. |
Collection<String> |
rangeHeadReversed(String toElement,
boolean toInclusive)
Returns head values range in reverse order ending with
toElement. |
Collection<String> |
rangeHeadReversed(String toElement,
boolean toInclusive,
int offset,
int count)
Returns head values range in reverse order ending with
toElement. |
RFuture<Collection<String>> |
rangeHeadReversedAsync(String toElement,
boolean toInclusive)
Returns head values range in reverse order ending with
toElement. |
RFuture<Collection<String>> |
rangeHeadReversedAsync(String toElement,
boolean toInclusive,
int offset,
int count)
Returns head values range in reverse order ending with
toElement. |
Collection<String> |
rangeReversed(String fromElement,
boolean fromInclusive,
String toElement,
boolean toInclusive)
Returns values range in reverse order starting with
fromElement and ending with toElement. |
Collection<String> |
rangeReversed(String fromElement,
boolean fromInclusive,
String toElement,
boolean toInclusive,
int offset,
int count)
Returns values range in reverse order starting with
fromElement and ending with toElement. |
RFuture<Collection<String>> |
rangeReversedAsync(String fromElement,
boolean fromInclusive,
String toElement,
boolean toInclusive)
Returns values range in reverse order starting with
fromElement and ending with toElement. |
RFuture<Collection<String>> |
rangeReversedAsync(String fromElement,
boolean fromInclusive,
String toElement,
boolean toInclusive,
int offset,
int count)
Returns values range in reverse order starting with
fromElement and ending with toElement. |
Collection<String> |
rangeTail(String fromElement,
boolean fromInclusive)
Returns tail values range starting with
fromElement. |
Collection<String> |
rangeTail(String fromElement,
boolean fromInclusive,
int offset,
int count)
Returns tail values range starting with
fromElement. |
RFuture<Collection<String>> |
rangeTailAsync(String fromElement,
boolean fromInclusive)
Returns tail values range starting with
fromElement. |
RFuture<Collection<String>> |
rangeTailAsync(String fromElement,
boolean fromInclusive,
int offset,
int count)
Returns tail values range starting with
fromElement. |
Collection<String> |
rangeTailReversed(String fromElement,
boolean fromInclusive)
Returns tail values range in reverse order starting with
fromElement. |
Collection<String> |
rangeTailReversed(String fromElement,
boolean fromInclusive,
int offset,
int count)
Returns tail values range in reverse order starting with
fromElement. |
RFuture<Collection<String>> |
rangeTailReversedAsync(String fromElement,
boolean fromInclusive)
Returns tail values range in reverse order starting with
fromElement. |
RFuture<Collection<String>> |
rangeTailReversedAsync(String fromElement,
boolean fromInclusive,
int offset,
int count)
Returns tail values range in reverse order starting with
fromElement. |
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)
Removes values range starting with
fromElement and ending with toElement. |
RFuture<Integer> |
removeRangeAsync(String fromElement,
boolean fromInclusive,
String toElement,
boolean toInclusive)
Removes values range starting with
fromElement and ending with toElement. |
int |
removeRangeHead(String toElement,
boolean toInclusive)
Removes head values range ending with
toElement. |
RFuture<Integer> |
removeRangeHeadAsync(String toElement,
boolean toInclusive)
Removes head values range ending with
toElement. |
int |
removeRangeTail(String fromElement,
boolean fromInclusive)
Removes tail values range starting with
fromElement. |
RFuture<Integer> |
removeRangeTailAsync(String fromElement,
boolean fromInclusive)
Removes tail values range starting with
fromElement. |
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, addAndGetRevRank, addAndGetRevRankAsync, 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, getScore, getScoreAsync, 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, readSortAlpha, readSortAlpha, readSortAlpha, readSortAlpha, readSortAlpha, readSortAlpha, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, remove, removeAll, removeAllAsync, removeAsync, removeRangeByRank, removeRangeByRankAsync, removeRangeByScore, removeRangeByScoreAsync, retainAll, retainAllAsync, revRank, revRank, revRankAsync, revRankAsync, scanIteratorAsync, size, sizeAsync, sortTo, sortTo, sortTo, sortTo, sortTo, sortTo, sortToAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsync, stream, stream, stream, stream, subscribeOnFirstElements, subscribeOnLastElements, takeFirst, takeFirstAsync, takeLast, takeLastAsync, toArray, toArray, tryAdd, tryAddAsync, union, union, union, union, unionAsync, unionAsync, unionAsync, unionAsync, unsubscribe, valueRange, valueRange, valueRange, valueRangeAsync, valueRangeAsync, valueRangeAsync, valueRangeReversed, valueRangeReversed, valueRangeReversed, valueRangeReversedAsync, valueRangeReversedAsync, valueRangeReversedAsyncaddListener, addListener, addListenerAsync, addListenerAsync, copy, copyAsync, delete, deleteAsync, deleteAsync, dump, dumpAsync, encode, encode, encode, encode, encodeMapKey, encodeMapKeys, encodeMapValue, encodeMapValues, get, getCodec, getIdleTime, getIdleTimeAsync, getLockByMapKey, getLockByValue, getName, getName, isExists, isExistsAsync, migrate, migrateAsync, move, moveAsync, prefixName, removeListener, removeListenerAsync, removeListenersAsync, rename, renameAsync, renamenx, renamenxAsync, restore, restore, restoreAndReplace, restoreAndReplace, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemory, sizeInMemoryAsync, sizeInMemoryAsync, sizeInMemoryAsync, suffixName, toSeconds, toStream, 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, remainTimeToLiveAsyncaddListenerAsync, copyAsync, deleteAsync, dumpAsync, getIdleTimeAsync, isExistsAsync, migrateAsync, moveAsync, removeListenerAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, touchAsync, unlinkAsyncmapReduce, readAll, readAllAsync, removeAsyncfirst, last, spliteratorclear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArrayparallelStream, removeIf, streamclearExpire, expire, expireAt, expireAt, remainTimeToLiveaddListener, copy, delete, dump, getCodec, getIdleTime, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlinkpublic RedissonLexSortedSet(CommandAsyncExecutor commandExecutor, String name, RedissonClient redisson)
public int removeRange(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive)
RLexSortedSetfromElement and ending with toElement.removeRange in interface RLexSortedSetfromElement - - start elementfromInclusive - - start element inclusivetoElement - - end elementtoInclusive - - end element inclusivepublic int removeRangeHead(String toElement, boolean toInclusive)
RLexSortedSettoElement.removeRangeHead in interface RLexSortedSettoElement - - end elementtoInclusive - - end element inclusivepublic RFuture<Integer> removeRangeHeadAsync(String toElement, boolean toInclusive)
RLexSortedSetAsynctoElement.removeRangeHeadAsync in interface RLexSortedSetAsynctoElement - - end elementtoInclusive - - end element inclusivepublic int removeRangeTail(String fromElement, boolean fromInclusive)
RLexSortedSetfromElement.removeRangeTail in interface RLexSortedSetfromElement - - start elementfromInclusive - - start element inclusivepublic RFuture<Integer> removeRangeTailAsync(String fromElement, boolean fromInclusive)
RLexSortedSetAsyncfromElement.removeRangeTailAsync in interface RLexSortedSetAsyncfromElement - - start elementfromInclusive - - start element inclusivepublic RFuture<Integer> removeRangeAsync(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive)
RLexSortedSetAsyncfromElement and ending with toElement.removeRangeAsync in interface RLexSortedSetAsyncfromElement - - start elementfromInclusive - - start element inclusivetoElement - - end elementtoInclusive - - end element inclusivepublic Collection<String> range(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive)
RLexSortedSetfromElement and ending with toElement.range in interface RLexSortedSetfromElement - - start elementfromInclusive - - start element inclusivetoElement - - end elementtoInclusive - - end element inclusivepublic Collection<String> rangeHead(String toElement, boolean toInclusive)
RLexSortedSettoElement.rangeHead in interface RLexSortedSettoElement - - end elementtoInclusive - - end element inclusivepublic RFuture<Collection<String>> rangeHeadAsync(String toElement, boolean toInclusive)
RLexSortedSetAsynctoElement.rangeHeadAsync in interface RLexSortedSetAsynctoElement - - end elementtoInclusive - - end element inclusivepublic Collection<String> rangeTail(String fromElement, boolean fromInclusive)
RLexSortedSetfromElement.rangeTail in interface RLexSortedSetfromElement - - start elementfromInclusive - - start element inclusivepublic RFuture<Collection<String>> rangeTailAsync(String fromElement, boolean fromInclusive)
RLexSortedSetAsyncfromElement.rangeTailAsync in interface RLexSortedSetAsyncfromElement - - start elementfromInclusive - - start element inclusivepublic RFuture<Collection<String>> rangeAsync(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive)
RLexSortedSetAsyncfromElement and ending with toElement.rangeAsync in interface RLexSortedSetAsyncfromElement - - start elementfromInclusive - - start element inclusivetoElement - - end elementtoInclusive - - end element inclusivepublic Collection<String> range(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive, int offset, int count)
RLexSortedSetfromElement and ending with toElement.
Returned collection limited by count and starts with offset.range in interface RLexSortedSetfromElement - - start elementfromInclusive - - start element inclusivetoElement - - end elementtoInclusive - - end element inclusiveoffset - - offset of result collectioncount - - amount of result collectionpublic Collection<String> rangeHead(String toElement, boolean toInclusive, int offset, int count)
RLexSortedSettoElement.
Returned collection limited by count and starts with offset.rangeHead in interface RLexSortedSettoElement - - end elementtoInclusive - - end element inclusiveoffset - - offset of result collectioncount - - amount of result collectionpublic RFuture<Collection<String>> rangeHeadAsync(String toElement, boolean toInclusive, int offset, int count)
RLexSortedSetAsynctoElement.
Returned collection limited by count and starts with offset.rangeHeadAsync in interface RLexSortedSetAsynctoElement - - end elementtoInclusive - - end element inclusiveoffset - - offset of result collectioncount - - amount of result collectionpublic Collection<String> rangeTail(String fromElement, boolean fromInclusive, int offset, int count)
RLexSortedSetfromElement.
Returned collection limited by count and starts with offset.rangeTail in interface RLexSortedSetfromElement - - start elementfromInclusive - - start element inclusiveoffset - - offset of result collectioncount - - amount of result collectionpublic RFuture<Collection<String>> rangeTailAsync(String fromElement, boolean fromInclusive, int offset, int count)
RLexSortedSetAsyncfromElement.
Returned collection limited by count and starts with offset.rangeTailAsync in interface RLexSortedSetAsyncfromElement - - start elementfromInclusive - - start element inclusiveoffset - - offset of result collectioncount - - amount of result collectionpublic RFuture<Collection<String>> rangeAsync(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive, int offset, int count)
RLexSortedSetAsyncfromElement and ending with toElement.
Returned collection limited by count and starts with offset.rangeAsync in interface RLexSortedSetAsyncfromElement - - start elementfromInclusive - - start element inclusivetoElement - - end elementtoInclusive - - end element inclusiveoffset - - offset of result collectioncount - - amount of result collectionpublic Collection<String> rangeTailReversed(String fromElement, boolean fromInclusive)
RLexSortedSetfromElement.rangeTailReversed in interface RLexSortedSetfromElement - - start elementfromInclusive - - start element inclusivepublic Collection<String> rangeHeadReversed(String toElement, boolean toInclusive)
RLexSortedSettoElement.rangeHeadReversed in interface RLexSortedSettoElement - - end elementtoInclusive - - end element inclusivepublic Collection<String> rangeReversed(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive)
RLexSortedSetfromElement and ending with toElement.rangeReversed in interface RLexSortedSetfromElement - - start elementfromInclusive - - start element inclusivetoElement - - end elementtoInclusive - - end element inclusivepublic Collection<String> rangeTailReversed(String fromElement, boolean fromInclusive, int offset, int count)
RLexSortedSetfromElement.
Returned collection limited by count and starts with offset.rangeTailReversed in interface RLexSortedSetfromElement - - start elementfromInclusive - - start element inclusiveoffset - - offset of result collectioncount - - amount of result collectionpublic Collection<String> rangeHeadReversed(String toElement, boolean toInclusive, int offset, int count)
RLexSortedSettoElement.
Returned collection limited by count and starts with offset.rangeHeadReversed in interface RLexSortedSettoElement - - end elementtoInclusive - - end element inclusiveoffset - - offset of result collectioncount - - amount of result collectionpublic Collection<String> rangeReversed(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive, int offset, int count)
RLexSortedSetfromElement and ending with toElement.
Returned collection limited by count and starts with offset.rangeReversed in interface RLexSortedSetfromElement - - start elementfromInclusive - - start element inclusivetoElement - - end elementtoInclusive - - end element inclusiveoffset - - offset of result collectioncount - - amount of result collectionpublic RFuture<Collection<String>> rangeTailReversedAsync(String fromElement, boolean fromInclusive)
RLexSortedSetAsyncfromElement.rangeTailReversedAsync in interface RLexSortedSetAsyncfromElement - - start elementfromInclusive - - start element inclusivepublic RFuture<Collection<String>> rangeHeadReversedAsync(String toElement, boolean toInclusive)
RLexSortedSetAsynctoElement.rangeHeadReversedAsync in interface RLexSortedSetAsynctoElement - - end elementtoInclusive - - end element inclusivepublic RFuture<Collection<String>> rangeReversedAsync(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive)
RLexSortedSetAsyncfromElement and ending with toElement.rangeReversedAsync in interface RLexSortedSetAsyncfromElement - - start elementfromInclusive - - start element inclusivetoElement - - end elementtoInclusive - - end element inclusivepublic RFuture<Collection<String>> rangeTailReversedAsync(String fromElement, boolean fromInclusive, int offset, int count)
RLexSortedSetAsyncfromElement.
Returned collection limited by count and starts with offset.rangeTailReversedAsync in interface RLexSortedSetAsyncfromElement - - start elementfromInclusive - - start element inclusiveoffset - - offset of result collectioncount - - amount of result collectionpublic RFuture<Collection<String>> rangeHeadReversedAsync(String toElement, boolean toInclusive, int offset, int count)
RLexSortedSetAsynctoElement.
Returned collection limited by count and starts with offset.rangeHeadReversedAsync in interface RLexSortedSetAsynctoElement - - end elementtoInclusive - - end element inclusiveoffset - - offset of result collectioncount - - amount of result collectionpublic RFuture<Collection<String>> rangeReversedAsync(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive, int offset, int count)
RLexSortedSetAsyncfromElement and ending with toElement.
Returned collection limited by count and starts with offset.rangeReversedAsync in interface RLexSortedSetAsyncfromElement - - start elementfromInclusive - - start element inclusivetoElement - - end elementtoInclusive - - end element inclusiveoffset - - offset of result collectioncount - - amount of result collectionpublic int countTail(String fromElement, boolean fromInclusive)
RLexSortedSetfromElement.countTail in interface RLexSortedSetfromElement - - start elementfromInclusive - - start element inclusivepublic RFuture<Integer> countTailAsync(String fromElement, boolean fromInclusive)
RLexSortedSetAsyncfromElement.countTailAsync in interface RLexSortedSetAsyncfromElement - - start elementfromInclusive - - start element inclusivepublic int countHead(String toElement, boolean toInclusive)
RLexSortedSettoElement.countHead in interface RLexSortedSettoElement - - end elementtoInclusive - - end element inclusivepublic RFuture<Integer> countHeadAsync(String toElement, boolean toInclusive)
RLexSortedSetAsynctoElement.countHeadAsync in interface RLexSortedSetAsynctoElement - - end elementtoInclusive - - end element inclusivepublic int count(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive)
RLexSortedSetfromElement and toElement.count in interface RLexSortedSetfromElement - - start elementfromInclusive - - start element inclusivetoElement - - end elementtoInclusive - - end element inclusivepublic RFuture<Integer> countAsync(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive)
RLexSortedSetAsyncfromElement and toElement.countAsync in interface RLexSortedSetAsyncfromElement - - start elementfromInclusive - - start element inclusivetoElement - - end elementtoInclusive - - end element inclusivepublic RFuture<Boolean> addAsync(String e)
RCollectionAsyncaddAsync in interface RCollectionAsync<String>addAsync in interface RSortedSet<String>e - - element to addtrue if an element was added
and false if it is already presentpublic RFuture<Boolean> addAllAsync(Collection<? extends String> c)
RCollectionAsyncaddAllAsync in interface RCollectionAsync<String>c - - collection of elements to addtrue if at least one element was added
and false if all elements are already presentpublic boolean add(String e)
public boolean addAll(Collection<? extends String> c)
public Collection<String> range(int startIndex, int endIndex)
RLexSortedSet-1 means the highest score, -2 means the second highest score.range in interface RLexSortedSetstartIndex - - start indexendIndex - - end indexpublic RFuture<Collection<String>> rangeAsync(int startIndex, int endIndex)
RLexSortedSetAsync-1 means the highest score, -2 means the second highest score.rangeAsync in interface RLexSortedSetAsyncstartIndex - - start indexendIndex - - end indexpublic 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 milliseconds (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 RExpirableAsyncprotected RFuture<Boolean> expireAsync(long timeToLive, TimeUnit timeUnit, String... keys)
Copyright © 2014–2020 Redisson. All rights reserved.