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) |
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> |
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) |
long |
remainTimeToLive()
Remaining time to live of Redisson object that has a timeout
|
RFuture<Long> |
remainTimeToLiveAsync()
Get remaining time to live of object in seconds.
|
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, addAsync, addScore, 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, last, lastAsync, lastScore, lastScoreAsync, mapReduce, pollFirst, pollFirstAsync, pollLast, pollLastAsync, 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, valueRangeReversedAsync
await, delete, deleteAsync, encode, encodeMapKey, encodeMapValue, get, getCodec, getName, getName, isExists, isExistsAsync, migrate, migrateAsync, move, moveAsync, newPromise, newSucceededFuture, prefixName, rename, renameAsync, renamenx, renamenxAsync, suffixName, touch, touchAsync
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
deleteAsync, isExistsAsync, migrateAsync, moveAsync, renameAsync, renamenxAsync, touchAsync
mapReduce, readAll, readAllAsync, removeAsync
clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
clearExpire, expire, expireAt, expireAt, remainTimeToLive
public RedissonLexSortedSet(CommandAsyncExecutor commandExecutor, String name, RedissonClient redisson)
public int removeRange(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive)
removeRange
in interface RLexSortedSet
public int removeRangeHead(String toElement, boolean toInclusive)
removeRangeHead
in interface RLexSortedSet
public RFuture<Integer> removeRangeHeadAsync(String toElement, boolean toInclusive)
removeRangeHeadAsync
in interface RLexSortedSetAsync
public int removeRangeTail(String fromElement, boolean fromInclusive)
removeRangeTail
in interface RLexSortedSet
public RFuture<Integer> removeRangeTailAsync(String fromElement, boolean fromInclusive)
removeRangeTailAsync
in interface RLexSortedSetAsync
public RFuture<Integer> removeRangeAsync(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive)
removeRangeAsync
in interface RLexSortedSetAsync
public Collection<String> range(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive)
range
in interface RLexSortedSet
public Collection<String> rangeHead(String toElement, boolean toInclusive)
rangeHead
in interface RLexSortedSet
public RFuture<Collection<String>> rangeHeadAsync(String toElement, boolean toInclusive)
rangeHeadAsync
in interface RLexSortedSetAsync
public Collection<String> rangeTail(String fromElement, boolean fromInclusive)
rangeTail
in interface RLexSortedSet
public RFuture<Collection<String>> rangeTailAsync(String fromElement, boolean fromInclusive)
rangeTailAsync
in interface RLexSortedSetAsync
public RFuture<Collection<String>> rangeAsync(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive)
rangeAsync
in interface RLexSortedSetAsync
public Collection<String> range(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive, int offset, int count)
range
in interface RLexSortedSet
public Collection<String> rangeHead(String toElement, boolean toInclusive, int offset, int count)
rangeHead
in interface RLexSortedSet
public RFuture<Collection<String>> rangeHeadAsync(String toElement, boolean toInclusive, int offset, int count)
rangeHeadAsync
in interface RLexSortedSetAsync
public Collection<String> rangeTail(String fromElement, boolean fromInclusive, int offset, int count)
rangeTail
in interface RLexSortedSet
public RFuture<Collection<String>> rangeTailAsync(String fromElement, boolean fromInclusive, int offset, int count)
rangeTailAsync
in interface RLexSortedSetAsync
public RFuture<Collection<String>> rangeAsync(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive, int offset, int count)
rangeAsync
in interface RLexSortedSetAsync
public int countTail(String fromElement, boolean fromInclusive)
countTail
in interface RLexSortedSet
public RFuture<Integer> countTailAsync(String fromElement, boolean fromInclusive)
countTailAsync
in interface RLexSortedSetAsync
public int countHead(String toElement, boolean toInclusive)
countHead
in interface RLexSortedSet
public RFuture<Integer> countHeadAsync(String toElement, boolean toInclusive)
countHeadAsync
in interface RLexSortedSetAsync
public int count(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive)
count
in interface RLexSortedSet
public RFuture<Integer> countAsync(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive)
countAsync
in interface RLexSortedSetAsync
public 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 RLexSortedSet
public RFuture<Collection<String>> rangeAsync(int startIndex, int endIndex)
rangeAsync
in interface RLexSortedSetAsync
public 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 seconds (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
-1
if object does not exist or time in secondsCopyright © 2014–2017 The Redisson Project. All rights reserved.