public class RedissonLexSortedSet extends RedissonScoredSortedSet<String> implements RLexSortedSet
RScoredSortedSet.Aggregate
codec, 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)
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.
|
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.
|
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)
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, 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, 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, revRankAsync, scanIteratorAsync, size, sizeAsync, sortTo, sortTo, sortTo, sortTo, sortTo, sortTo, sortToAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsync, stream, stream, stream, stream, takeFirst, takeFirstAsync, takeLast, takeLastAsync, toArray, toArray, tryAdd, tryAddAsync, union, union, union, union, unionAsync, unionAsync, unionAsync, unionAsync, valueRange, valueRange, valueRange, valueRangeAsync, valueRangeAsync, valueRangeAsync, valueRangeReversed, valueRangeReversed, valueRangeReversed, valueRangeReversedAsync, valueRangeReversedAsync, valueRangeReversedAsync
await, copy, copyAsync, delete, deleteAsync, dump, dumpAsync, encode, encode, encode, encodeMapKey, encodeMapKeys, encodeMapValue, encodeMapValues, get, getCodec, getLockByMapKey, getLockByValue, getName, getName, isExists, isExistsAsync, migrate, migrateAsync, move, moveAsync, prefixName, rename, renameAsync, renamenx, renamenxAsync, restore, restore, restoreAndReplace, restoreAndReplace, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemory, sizeInMemoryAsync, sizeInMemoryAsync, suffixName, toSeconds, toStream, touch, touchAsync, unlink, unlinkAsync
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
pollFirst, pollLast, rank, revRank
firstAsync, lastAsync, pollFirstAsync, pollLastAsync, rankAsync, readAllAsync, revRankAsync
containsAllAsync, containsAsync, removeAllAsync, removeAsync, retainAllAsync, sizeAsync
clearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsync
copyAsync, deleteAsync, dumpAsync, isExistsAsync, migrateAsync, moveAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, touchAsync, unlinkAsync
mapReduce, readAll, readAllAsync, removeAsync
first, last, spliterator
clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
parallelStream, removeIf, stream
clearExpire, expire, expireAt, expireAt, remainTimeToLive
public RedissonLexSortedSet(CommandAsyncExecutor commandExecutor, String name, RedissonClient redisson)
public int removeRange(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive)
RLexSortedSet
fromElement
and ending with toElement
.removeRange
in interface RLexSortedSet
fromElement
- - start elementfromInclusive
- - start element inclusivetoElement
- - end elementtoInclusive
- - end element inclusivepublic int removeRangeHead(String toElement, boolean toInclusive)
RLexSortedSet
toElement
.removeRangeHead
in interface RLexSortedSet
toElement
- - end elementtoInclusive
- - end element inclusivepublic RFuture<Integer> removeRangeHeadAsync(String toElement, boolean toInclusive)
RLexSortedSetAsync
toElement
.removeRangeHeadAsync
in interface RLexSortedSetAsync
toElement
- - end elementtoInclusive
- - end element inclusivepublic int removeRangeTail(String fromElement, boolean fromInclusive)
RLexSortedSet
fromElement
.removeRangeTail
in interface RLexSortedSet
fromElement
- - start elementfromInclusive
- - start element inclusivepublic RFuture<Integer> removeRangeTailAsync(String fromElement, boolean fromInclusive)
RLexSortedSetAsync
fromElement
.removeRangeTailAsync
in interface RLexSortedSetAsync
fromElement
- - start elementfromInclusive
- - start element inclusivepublic RFuture<Integer> removeRangeAsync(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive)
RLexSortedSetAsync
fromElement
and ending with toElement
.removeRangeAsync
in interface RLexSortedSetAsync
fromElement
- - start elementfromInclusive
- - start element inclusivetoElement
- - end elementtoInclusive
- - end element inclusivepublic Collection<String> range(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive)
RLexSortedSet
fromElement
and ending with toElement
.range
in interface RLexSortedSet
fromElement
- - start elementfromInclusive
- - start element inclusivetoElement
- - end elementtoInclusive
- - end element inclusivepublic Collection<String> rangeHead(String toElement, boolean toInclusive)
RLexSortedSet
toElement
.rangeHead
in interface RLexSortedSet
toElement
- - end elementtoInclusive
- - end element inclusivepublic RFuture<Collection<String>> rangeHeadAsync(String toElement, boolean toInclusive)
RLexSortedSetAsync
toElement
.rangeHeadAsync
in interface RLexSortedSetAsync
toElement
- - end elementtoInclusive
- - end element inclusivepublic Collection<String> rangeTail(String fromElement, boolean fromInclusive)
RLexSortedSet
fromElement
.rangeTail
in interface RLexSortedSet
fromElement
- - start elementfromInclusive
- - start element inclusivepublic RFuture<Collection<String>> rangeTailAsync(String fromElement, boolean fromInclusive)
RLexSortedSetAsync
fromElement
.rangeTailAsync
in interface RLexSortedSetAsync
fromElement
- - start elementfromInclusive
- - start element inclusivepublic RFuture<Collection<String>> rangeAsync(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive)
RLexSortedSetAsync
fromElement
and ending with toElement
.rangeAsync
in interface RLexSortedSetAsync
fromElement
- - 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)
RLexSortedSet
fromElement
and ending with toElement
.
Returned collection limited by count
and starts with offset
.range
in interface RLexSortedSet
fromElement
- - start elementfromInclusive
- - start element inclusivetoElement
- - end elementtoInclusive
- - end element inclusivepublic Collection<String> rangeHead(String toElement, boolean toInclusive, int offset, int count)
RLexSortedSet
toElement
.
Returned collection limited by count
and starts with offset
.rangeHead
in interface RLexSortedSet
toElement
- - 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)
RLexSortedSetAsync
toElement
.
Returned collection limited by count
and starts with offset
.rangeHeadAsync
in interface RLexSortedSetAsync
toElement
- - end elementtoInclusive
- - end element inclusiveoffset
- - offset of result collectioncount
- - amount of result collectionpublic Collection<String> rangeTail(String fromElement, boolean fromInclusive, int offset, int count)
RLexSortedSet
fromElement
.
Returned collection limited by count
and starts with offset
.rangeTail
in interface RLexSortedSet
fromElement
- - 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)
RLexSortedSetAsync
fromElement
.
Returned collection limited by count
and starts with offset
.rangeTailAsync
in interface RLexSortedSetAsync
fromElement
- - 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)
RLexSortedSetAsync
fromElement
and ending with toElement
.
Returned collection limited by count
and starts with offset
.rangeAsync
in interface RLexSortedSetAsync
fromElement
- - start elementfromInclusive
- - start element inclusivetoElement
- - end elementtoInclusive
- - end element inclusivepublic Collection<String> rangeTailReversed(String fromElement, boolean fromInclusive)
RLexSortedSet
fromElement
.rangeTailReversed
in interface RLexSortedSet
fromElement
- - start elementfromInclusive
- - start element inclusivepublic Collection<String> rangeHeadReversed(String toElement, boolean toInclusive)
RLexSortedSet
toElement
.rangeHeadReversed
in interface RLexSortedSet
toElement
- - end elementtoInclusive
- - end element inclusivepublic Collection<String> rangeReversed(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive)
RLexSortedSet
fromElement
and ending with toElement
.rangeReversed
in interface RLexSortedSet
fromElement
- - start elementfromInclusive
- - start element inclusivetoElement
- - end elementtoInclusive
- - end element inclusivepublic Collection<String> rangeTailReversed(String fromElement, boolean fromInclusive, int offset, int count)
RLexSortedSet
fromElement
.
Returned collection limited by count
and starts with offset
.rangeTailReversed
in interface RLexSortedSet
fromElement
- - start elementfromInclusive
- - start element inclusiveoffset
- - offset of result collectioncount
- - amount of result collectionpublic Collection<String> rangeHeadReversed(String toElement, boolean toInclusive, int offset, int count)
RLexSortedSet
toElement
.
Returned collection limited by count
and starts with offset
.rangeHeadReversed
in interface RLexSortedSet
toElement
- - 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)
RLexSortedSet
fromElement
and ending with toElement
.
Returned collection limited by count
and starts with offset
.rangeReversed
in interface RLexSortedSet
fromElement
- - start elementfromInclusive
- - start element inclusivetoElement
- - end elementtoInclusive
- - end element inclusivepublic RFuture<Collection<String>> rangeTailReversedAsync(String fromElement, boolean fromInclusive)
RLexSortedSetAsync
fromElement
.rangeTailReversedAsync
in interface RLexSortedSetAsync
fromElement
- - start elementfromInclusive
- - start element inclusivepublic RFuture<Collection<String>> rangeHeadReversedAsync(String toElement, boolean toInclusive)
RLexSortedSetAsync
toElement
.rangeHeadReversedAsync
in interface RLexSortedSetAsync
toElement
- - end elementtoInclusive
- - end element inclusivepublic RFuture<Collection<String>> rangeReversedAsync(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive)
RLexSortedSetAsync
fromElement
and ending with toElement
.rangeReversedAsync
in interface RLexSortedSetAsync
fromElement
- - start elementfromInclusive
- - start element inclusivetoElement
- - end elementtoInclusive
- - end element inclusivepublic RFuture<Collection<String>> rangeTailReversedAsync(String fromElement, boolean fromInclusive, int offset, int count)
RLexSortedSetAsync
fromElement
.
Returned collection limited by count
and starts with offset
.rangeTailReversedAsync
in interface RLexSortedSetAsync
fromElement
- - 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)
RLexSortedSetAsync
toElement
.
Returned collection limited by count
and starts with offset
.rangeHeadReversedAsync
in interface RLexSortedSetAsync
toElement
- - 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)
RLexSortedSetAsync
fromElement
and ending with toElement
.
Returned collection limited by count
and starts with offset
.rangeReversedAsync
in interface RLexSortedSetAsync
fromElement
- - start elementfromInclusive
- - start element inclusivetoElement
- - end elementtoInclusive
- - end element inclusivepublic int countTail(String fromElement, boolean fromInclusive)
RLexSortedSet
fromElement
.countTail
in interface RLexSortedSet
fromElement
- - start elementfromInclusive
- - start element inclusivepublic RFuture<Integer> countTailAsync(String fromElement, boolean fromInclusive)
RLexSortedSetAsync
fromElement
.countTailAsync
in interface RLexSortedSetAsync
fromElement
- - start elementfromInclusive
- - start element inclusivepublic int countHead(String toElement, boolean toInclusive)
RLexSortedSet
toElement
.countHead
in interface RLexSortedSet
toElement
- - end elementtoInclusive
- - end element inclusivepublic RFuture<Integer> countHeadAsync(String toElement, boolean toInclusive)
RLexSortedSetAsync
toElement
.countHeadAsync
in interface RLexSortedSetAsync
toElement
- - end elementtoInclusive
- - end element inclusivepublic int count(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive)
RLexSortedSet
fromElement
and toElement
.count
in interface RLexSortedSet
fromElement
- - start elementfromInclusive
- - start element inclusivetoElement
- - end elementtoInclusive
- - end element inclusivepublic RFuture<Integer> countAsync(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive)
RLexSortedSetAsync
fromElement
and toElement
.countAsync
in interface RLexSortedSetAsync
fromElement
- - start elementfromInclusive
- - start element inclusivetoElement
- - end elementtoInclusive
- - end element inclusivepublic RFuture<Boolean> addAsync(String e)
RCollectionAsync
addAsync
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)
RCollectionAsync
addAllAsync
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 RLexSortedSet
startIndex
- - 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 RLexSortedSetAsync
startIndex
- - start indexendIndex
- - end indexpublic boolean trySetComparator(Comparator<? super String> comparator)
RSortedSet
trySetComparator
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)
RExpirable
expire
in interface RExpirable
timeToLive
- - 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)
RExpirableAsync
expireAsync
in interface RExpirableAsync
timeToLive
- - timeout before object will be deletedtimeUnit
- - timeout time unittrue
if the timeout was set and false
if notpublic boolean expireAt(long timestamp)
RExpirable
expireAt
in interface RExpirable
timestamp
- - expire date in milliseconds (Unix timestamp)true
if the timeout was set and false
if notpublic RFuture<Boolean> expireAtAsync(long timestamp)
RExpirableAsync
expireAtAsync
in interface RExpirableAsync
timestamp
- - expire date in milliseconds (Unix timestamp)true
if the timeout was set and false
if notpublic boolean expireAt(Date timestamp)
RExpirable
expireAt
in interface RExpirable
timestamp
- - expire datetrue
if the timeout was set and false
if notpublic RFuture<Boolean> expireAtAsync(Date timestamp)
RExpirableAsync
expireAtAsync
in interface RExpirableAsync
timestamp
- - expire datetrue
if the timeout was set and false
if notpublic boolean clearExpire()
RExpirable
clearExpire
in interface RExpirable
true
if timeout was removed
false
if object does not exist or does not have an associated timeoutpublic RFuture<Boolean> clearExpireAsync()
RExpirableAsync
clearExpireAsync
in interface RExpirableAsync
true
if the timeout was cleared and false
if notpublic long remainTimeToLive()
RExpirable
remainTimeToLive
in interface RExpirable
public RFuture<Long> remainTimeToLiveAsync()
RExpirableAsync
remainTimeToLiveAsync
in interface RExpirableAsync
Copyright © 2014–2019 The Redisson Project. All rights reserved.