V
- value typeRExpirableReactive
, RObjectReactive
, RScoredSortedSetReactive<V>
, RSortableReactive<Set<V>>
RedissonGeoReactive
, RedissonLexSortedSetReactive
public class RedissonScoredSortedSetReactive<V> extends Object implements RScoredSortedSetReactive<V>
Constructor | Description |
---|---|
RedissonScoredSortedSetReactive(Codec codec,
CommandReactiveExecutor commandExecutor,
String name) |
|
RedissonScoredSortedSetReactive(Codec codec,
CommandReactiveExecutor commandExecutor,
String name,
RScoredSortedSetAsync<V> instance) |
|
RedissonScoredSortedSetReactive(CommandReactiveExecutor commandExecutor,
String name) |
|
RedissonScoredSortedSetReactive(CommandReactiveExecutor commandExecutor,
String name,
RScoredSortedSetAsync<V> instance) |
Modifier and Type | Method | Description |
---|---|---|
org.reactivestreams.Publisher<Boolean> |
add(double score,
V object) |
Adds element to this set, overrides previous score if it has been already added.
|
org.reactivestreams.Publisher<Long> |
addAll(Map<V,Double> objects) |
|
org.reactivestreams.Publisher<Integer> |
addAndGetRank(double score,
V object) |
Adds element to this set, overrides previous score if it has been already added.
|
org.reactivestreams.Publisher<Integer> |
addAndGetRevRank(double score,
V object) |
Adds element to this set, overrides previous score if it has been already added.
|
org.reactivestreams.Publisher<Double> |
addScore(V object,
Number value) |
|
org.reactivestreams.Publisher<Integer> |
addScoreAndGetRank(V object,
Number value) |
Adds score to element and returns its rank
|
org.reactivestreams.Publisher<Integer> |
addScoreAndGetRevRank(V object,
Number value) |
Adds score to element and returns its reverse rank
|
org.reactivestreams.Publisher<Boolean> |
clearExpire() |
Clear an expire timeout or expire date for object in mode.
|
org.reactivestreams.Publisher<Boolean> |
contains(V o) |
|
org.reactivestreams.Publisher<Boolean> |
containsAll(Collection<?> c) |
|
org.reactivestreams.Publisher<Void> |
copy(String host,
int port,
int database,
long timeout) |
Copy object from source Redis instance to destination Redis instance
|
org.reactivestreams.Publisher<Long> |
count(double startScore,
boolean startScoreInclusive,
double endScore,
boolean endScoreInclusive) |
Returns the number of elements with a score between
startScore and endScore . |
org.reactivestreams.Publisher<Boolean> |
delete() |
Delete object in mode
|
org.reactivestreams.Publisher<byte[]> |
dump() |
Returns dump of object
|
protected io.netty.buffer.ByteBuf |
encode(Object value) |
|
protected void |
encode(Collection<Object> params,
Collection<?> values) |
|
protected io.netty.buffer.ByteBuf |
encodeMapKey(Object value) |
|
protected io.netty.buffer.ByteBuf |
encodeMapValue(Object value) |
|
org.reactivestreams.Publisher<Collection<ScoredEntry<V>>> |
entryRange(double startScore,
boolean startScoreInclusive,
double endScore,
boolean endScoreInclusive) |
|
org.reactivestreams.Publisher<Collection<ScoredEntry<V>>> |
entryRange(double startScore,
boolean startScoreInclusive,
double endScore,
boolean endScoreInclusive,
int offset,
int count) |
|
org.reactivestreams.Publisher<Collection<ScoredEntry<V>>> |
entryRange(int startIndex,
int endIndex) |
|
org.reactivestreams.Publisher<Collection<ScoredEntry<V>>> |
entryRangeReversed(double startScore,
boolean startScoreInclusive,
double endScore,
boolean endScoreInclusive) |
|
org.reactivestreams.Publisher<Collection<ScoredEntry<V>>> |
entryRangeReversed(double startScore,
boolean startScoreInclusive,
double endScore,
boolean endScoreInclusive,
int offset,
int count) |
|
org.reactivestreams.Publisher<Collection<ScoredEntry<V>>> |
entryRangeReversed(int startIndex,
int endIndex) |
|
org.reactivestreams.Publisher<Boolean> |
expire(long timeToLive,
TimeUnit timeUnit) |
Set a timeout for object in mode.
|
org.reactivestreams.Publisher<Boolean> |
expireAt(long timestamp) |
Set an expire date for object in mode.
|
org.reactivestreams.Publisher<Boolean> |
expireAt(Date timestamp) |
Set an expire date for object in mode.
|
org.reactivestreams.Publisher<V> |
first() |
Returns the head element or
null if this sorted set is empty. |
org.reactivestreams.Publisher<Double> |
firstScore() |
Returns score of the head element or returns
null if this sorted set is empty. |
Codec |
getCodec() |
|
String |
getName() |
|
org.reactivestreams.Publisher<Double> |
getScore(V o) |
|
org.reactivestreams.Publisher<Integer> |
intersection(String... names) |
Intersect provided ScoredSortedSets
and store result to current ScoredSortedSet
|
org.reactivestreams.Publisher<Integer> |
intersection(Map<String,Double> nameWithWeight) |
Intersect provided ScoredSortedSets mapped to weight multiplier
and store result to current ScoredSortedSet
|
org.reactivestreams.Publisher<Integer> |
intersection(RScoredSortedSet.Aggregate aggregate,
String... names) |
Intersect provided ScoredSortedSets with defined aggregation method
and store result to current ScoredSortedSet
|
org.reactivestreams.Publisher<Integer> |
intersection(RScoredSortedSet.Aggregate aggregate,
Map<String,Double> nameWithWeight) |
Intersect provided ScoredSortedSets mapped to weight multiplier
with defined aggregation method
and store result to current ScoredSortedSet
|
org.reactivestreams.Publisher<Boolean> |
isExists() |
Check object existence
|
org.reactivestreams.Publisher<V> |
iterator() |
|
org.reactivestreams.Publisher<V> |
iterator(int count) |
Returns an iterator over elements in this set.
|
org.reactivestreams.Publisher<V> |
iterator(String pattern) |
Returns an iterator over elements in this set.
|
org.reactivestreams.Publisher<V> |
iterator(String pattern,
int count) |
Returns an iterator over elements in this set.
|
org.reactivestreams.Publisher<V> |
last() |
Returns the tail element or
null if this sorted set is empty. |
org.reactivestreams.Publisher<Double> |
lastScore() |
Returns score of the tail element or returns
null if this sorted set is empty. |
org.reactivestreams.Publisher<Void> |
migrate(String host,
int port,
int database,
long timeout) |
Transfer a object from a source Redis instance to a destination Redis instance
in mode
|
org.reactivestreams.Publisher<Boolean> |
move(int database) |
Move object to another database in mode
|
protected <V> reactor.rx.Stream<V> |
newSucceeded(V result) |
|
org.reactivestreams.Publisher<V> |
pollFirst() |
Removes and returns the head element or
null if this sorted set is empty. |
org.reactivestreams.Publisher<Collection<V>> |
pollFirst(int count) |
Removes and returns the head elements or
null if this sorted set is empty. |
org.reactivestreams.Publisher<V> |
pollFirst(long timeout,
TimeUnit unit) |
Removes and returns the head element or
null if this sorted set is empty. |
org.reactivestreams.Publisher<V> |
pollFirstFromAny(long timeout,
TimeUnit unit,
String... queueNames) |
Removes and returns first available head element of any sorted set,
waiting up to the specified wait time if necessary for an element to become available
in any of defined sorted sets including this one.
|
org.reactivestreams.Publisher<V> |
pollLast() |
Removes and returns the tail element or
null if this sorted set is empty. |
org.reactivestreams.Publisher<Collection<V>> |
pollLast(int count) |
Removes and returns the tail elements or
null if this sorted set is empty. |
org.reactivestreams.Publisher<V> |
pollLast(long timeout,
TimeUnit unit) |
Removes and returns the tail element or
null if this sorted set is empty. |
org.reactivestreams.Publisher<V> |
pollLastFromAny(long timeout,
TimeUnit unit,
String... queueNames) |
Removes and returns first available tail element of any sorted set,
waiting up to the specified wait time if necessary for an element to become available
in any of defined sorted sets including this one.
|
org.reactivestreams.Publisher<Integer> |
rank(V o) |
Returns rank of value, with the scores ordered from low to high.
|
<R> org.reactivestreams.Publisher<R> |
reactive(reactor.fn.Supplier<RFuture<R>> supplier) |
|
org.reactivestreams.Publisher<Collection<V>> |
readAll() |
Read all values at once.
|
<T> org.reactivestreams.Publisher<Collection<T>> |
readSorted(String byPattern,
List<String> getPatterns,
SortOrder order) |
Read data in sorted view
|
<T> org.reactivestreams.Publisher<Collection<T>> |
readSorted(String byPattern,
List<String> getPatterns,
SortOrder order,
int offset,
int count) |
Read data in sorted view
|
org.reactivestreams.Publisher<Set<V>> |
readSorted(String byPattern,
SortOrder order) |
Read data in sorted view
|
org.reactivestreams.Publisher<Set<V>> |
readSorted(String byPattern,
SortOrder order,
int offset,
int count) |
Read data in sorted view
|
org.reactivestreams.Publisher<Set<V>> |
readSorted(SortOrder order) |
Read data in sorted view
|
org.reactivestreams.Publisher<Set<V>> |
readSorted(SortOrder order,
int offset,
int count) |
Read data in sorted view
|
org.reactivestreams.Publisher<Long> |
remainTimeToLive() |
Get remaining time to live of object in milliseconds.
|
org.reactivestreams.Publisher<Boolean> |
remove(V object) |
|
org.reactivestreams.Publisher<Boolean> |
removeAll(Collection<?> c) |
|
org.reactivestreams.Publisher<Integer> |
removeRangeByRank(int startIndex,
int endIndex) |
|
org.reactivestreams.Publisher<Integer> |
removeRangeByScore(double startScore,
boolean startScoreInclusive,
double endScore,
boolean endScoreInclusive) |
|
org.reactivestreams.Publisher<Void> |
rename(String newName) |
Rename current object key to
newName
in mode |
org.reactivestreams.Publisher<Boolean> |
renamenx(String newName) |
Rename current object key to
newName
in mode only if new key is not exists |
org.reactivestreams.Publisher<Void> |
restore(byte[] state) |
Restores object using its state returned by
RObjectReactive.dump() method. |
org.reactivestreams.Publisher<Void> |
restore(byte[] state,
long timeToLive,
TimeUnit timeUnit) |
Restores object using its state returned by
RObjectReactive.dump() method and set time to live for it. |
org.reactivestreams.Publisher<Void> |
restoreAndReplace(byte[] state) |
Restores and replaces object if it already exists.
|
org.reactivestreams.Publisher<Void> |
restoreAndReplace(byte[] state,
long timeToLive,
TimeUnit timeUnit) |
Restores and replaces object if it already exists and set time to live for it.
|
org.reactivestreams.Publisher<Boolean> |
retainAll(Collection<?> c) |
|
org.reactivestreams.Publisher<Integer> |
revRank(V o) |
Returns rank of value, with the scores ordered from high to low.
|
org.reactivestreams.Publisher<Integer> |
size() |
|
org.reactivestreams.Publisher<Integer> |
sortTo(String destName,
String byPattern,
List<String> getPatterns,
SortOrder order) |
Sort data and store to
destName list |
org.reactivestreams.Publisher<Integer> |
sortTo(String destName,
String byPattern,
List<String> getPatterns,
SortOrder order,
int offset,
int count) |
Sort data and store to
destName list |
org.reactivestreams.Publisher<Integer> |
sortTo(String destName,
String byPattern,
SortOrder order) |
Sort data and store to
destName list |
org.reactivestreams.Publisher<Integer> |
sortTo(String destName,
String byPattern,
SortOrder order,
int offset,
int count) |
Sort data and store to
destName list |
org.reactivestreams.Publisher<Integer> |
sortTo(String destName,
SortOrder order) |
Sort data and store to
destName list |
org.reactivestreams.Publisher<Integer> |
sortTo(String destName,
SortOrder order,
int offset,
int count) |
Sort data and store to
destName list |
org.reactivestreams.Publisher<Boolean> |
touch() |
Update the last access time of an object.
|
org.reactivestreams.Publisher<Boolean> |
tryAdd(double score,
V object) |
Adds element to this set only if has not been added before.
|
org.reactivestreams.Publisher<Integer> |
union(String... names) |
Union provided ScoredSortedSets
and store result to current ScoredSortedSet
|
org.reactivestreams.Publisher<Integer> |
union(Map<String,Double> nameWithWeight) |
Union provided ScoredSortedSets mapped to weight multiplier
and store result to current ScoredSortedSet
|
org.reactivestreams.Publisher<Integer> |
union(RScoredSortedSet.Aggregate aggregate,
String... names) |
Union provided ScoredSortedSets with defined aggregation method
and store result to current ScoredSortedSet
|
org.reactivestreams.Publisher<Integer> |
union(RScoredSortedSet.Aggregate aggregate,
Map<String,Double> nameWithWeight) |
Union provided ScoredSortedSets mapped to weight multiplier
with defined aggregation method
and store result to current ScoredSortedSet
|
org.reactivestreams.Publisher<Boolean> |
unlink() |
Delete the objects.
|
org.reactivestreams.Publisher<Collection<V>> |
valueRange(double startScore,
boolean startScoreInclusive,
double endScore,
boolean endScoreInclusive) |
|
org.reactivestreams.Publisher<Collection<V>> |
valueRange(double startScore,
boolean startScoreInclusive,
double endScore,
boolean endScoreInclusive,
int offset,
int count) |
|
org.reactivestreams.Publisher<Collection<V>> |
valueRange(int startIndex,
int endIndex) |
|
org.reactivestreams.Publisher<Collection<V>> |
valueRangeReversed(double startScore,
boolean startScoreInclusive,
double endScore,
boolean endScoreInclusive) |
Returns all values between
startScore and endScore in reversed order. |
org.reactivestreams.Publisher<Collection<V>> |
valueRangeReversed(double startScore,
boolean startScoreInclusive,
double endScore,
boolean endScoreInclusive,
int offset,
int count) |
|
org.reactivestreams.Publisher<Collection<V>> |
valueRangeReversed(int startIndex,
int endIndex) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clearExpire, expire, expireAt, expireAt, remainTimeToLive
public RedissonScoredSortedSetReactive(CommandReactiveExecutor commandExecutor, String name)
public RedissonScoredSortedSetReactive(CommandReactiveExecutor commandExecutor, String name, RScoredSortedSetAsync<V> instance)
public RedissonScoredSortedSetReactive(Codec codec, CommandReactiveExecutor commandExecutor, String name)
public RedissonScoredSortedSetReactive(Codec codec, CommandReactiveExecutor commandExecutor, String name, RScoredSortedSetAsync<V> instance)
public org.reactivestreams.Publisher<V> pollFirst()
RScoredSortedSetReactive
null
if this sorted set is empty.pollFirst
in interface RScoredSortedSetReactive<V>
null
if this sorted set is emptypublic org.reactivestreams.Publisher<V> pollLast()
RScoredSortedSetReactive
null
if this sorted set is empty.pollLast
in interface RScoredSortedSetReactive<V>
null
if this sorted set is emptypublic org.reactivestreams.Publisher<V> first()
RScoredSortedSetReactive
null
if this sorted set is empty.first
in interface RScoredSortedSetReactive<V>
null
if this sorted set is emptypublic org.reactivestreams.Publisher<V> last()
RScoredSortedSetReactive
null
if this sorted set is empty.last
in interface RScoredSortedSetReactive<V>
null
if this sorted set is emptypublic org.reactivestreams.Publisher<Boolean> add(double score, V object)
RScoredSortedSetReactive
add
in interface RScoredSortedSetReactive<V>
score
- - object scoreobject
- - object itselftrue
if element has added and false
if not.public org.reactivestreams.Publisher<Integer> removeRangeByRank(int startIndex, int endIndex)
removeRangeByRank
in interface RScoredSortedSetReactive<V>
public org.reactivestreams.Publisher<Integer> removeRangeByScore(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive)
removeRangeByScore
in interface RScoredSortedSetReactive<V>
public org.reactivestreams.Publisher<Boolean> remove(V object)
remove
in interface RScoredSortedSetReactive<V>
public org.reactivestreams.Publisher<Integer> size()
size
in interface RScoredSortedSetReactive<V>
public org.reactivestreams.Publisher<Boolean> contains(V o)
contains
in interface RScoredSortedSetReactive<V>
public org.reactivestreams.Publisher<Double> getScore(V o)
getScore
in interface RScoredSortedSetReactive<V>
public org.reactivestreams.Publisher<Integer> rank(V o)
RScoredSortedSetReactive
rank
in interface RScoredSortedSetReactive<V>
o
- - objectnull
if value does not existpublic org.reactivestreams.Publisher<V> iterator()
iterator
in interface RScoredSortedSetReactive<V>
public org.reactivestreams.Publisher<Boolean> containsAll(Collection<?> c)
containsAll
in interface RScoredSortedSetReactive<V>
public org.reactivestreams.Publisher<Boolean> removeAll(Collection<?> c)
removeAll
in interface RScoredSortedSetReactive<V>
public org.reactivestreams.Publisher<Boolean> retainAll(Collection<?> c)
retainAll
in interface RScoredSortedSetReactive<V>
public org.reactivestreams.Publisher<Double> addScore(V object, Number value)
addScore
in interface RScoredSortedSetReactive<V>
public org.reactivestreams.Publisher<Collection<V>> valueRange(int startIndex, int endIndex)
valueRange
in interface RScoredSortedSetReactive<V>
public org.reactivestreams.Publisher<Collection<ScoredEntry<V>>> entryRange(int startIndex, int endIndex)
entryRange
in interface RScoredSortedSetReactive<V>
public org.reactivestreams.Publisher<Collection<V>> valueRange(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive)
valueRange
in interface RScoredSortedSetReactive<V>
public org.reactivestreams.Publisher<Collection<ScoredEntry<V>>> entryRange(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive)
entryRange
in interface RScoredSortedSetReactive<V>
public org.reactivestreams.Publisher<Collection<V>> valueRange(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive, int offset, int count)
valueRange
in interface RScoredSortedSetReactive<V>
public org.reactivestreams.Publisher<Collection<ScoredEntry<V>>> entryRange(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive, int offset, int count)
entryRange
in interface RScoredSortedSetReactive<V>
public org.reactivestreams.Publisher<Long> count(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive)
RScoredSortedSetReactive
startScore
and endScore
.count
in interface RScoredSortedSetReactive<V>
startScore
- - start scorestartScoreInclusive
- - start score inclusiveendScore
- - end scoreendScoreInclusive
- - end score inclusivepublic org.reactivestreams.Publisher<Collection<V>> readAll()
RScoredSortedSetReactive
readAll
in interface RScoredSortedSetReactive<V>
public org.reactivestreams.Publisher<Integer> intersection(String... names)
RScoredSortedSetReactive
intersection
in interface RScoredSortedSetReactive<V>
names
- - names of ScoredSortedSetpublic org.reactivestreams.Publisher<Integer> intersection(RScoredSortedSet.Aggregate aggregate, String... names)
RScoredSortedSetReactive
intersection
in interface RScoredSortedSetReactive<V>
aggregate
- - score aggregation modenames
- - names of ScoredSortedSetpublic org.reactivestreams.Publisher<Integer> intersection(Map<String,Double> nameWithWeight)
RScoredSortedSetReactive
intersection
in interface RScoredSortedSetReactive<V>
nameWithWeight
- - name of ScoredSortedSet mapped to weight multiplierpublic org.reactivestreams.Publisher<Integer> intersection(RScoredSortedSet.Aggregate aggregate, Map<String,Double> nameWithWeight)
RScoredSortedSetReactive
intersection
in interface RScoredSortedSetReactive<V>
aggregate
- - score aggregation modenameWithWeight
- - name of ScoredSortedSet mapped to weight multiplierpublic org.reactivestreams.Publisher<Integer> union(String... names)
RScoredSortedSetReactive
union
in interface RScoredSortedSetReactive<V>
names
- - names of ScoredSortedSetpublic org.reactivestreams.Publisher<Integer> union(RScoredSortedSet.Aggregate aggregate, String... names)
RScoredSortedSetReactive
union
in interface RScoredSortedSetReactive<V>
aggregate
- - score aggregation modenames
- - names of ScoredSortedSetpublic org.reactivestreams.Publisher<Integer> union(Map<String,Double> nameWithWeight)
RScoredSortedSetReactive
union
in interface RScoredSortedSetReactive<V>
nameWithWeight
- - name of ScoredSortedSet mapped to weight multiplierpublic org.reactivestreams.Publisher<Integer> union(RScoredSortedSet.Aggregate aggregate, Map<String,Double> nameWithWeight)
RScoredSortedSetReactive
union
in interface RScoredSortedSetReactive<V>
aggregate
- - score aggregation modenameWithWeight
- - name of ScoredSortedSet mapped to weight multiplierpublic org.reactivestreams.Publisher<Collection<V>> valueRangeReversed(int startIndex, int endIndex)
valueRangeReversed
in interface RScoredSortedSetReactive<V>
public org.reactivestreams.Publisher<Collection<V>> valueRangeReversed(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive)
RScoredSortedSetReactive
startScore
and endScore
in reversed order.valueRangeReversed
in interface RScoredSortedSetReactive<V>
startScore
- - start score.
Use Double.POSITIVE_INFINITY
or Double.NEGATIVE_INFINITY
to define infinity numbersstartScoreInclusive
- - start score inclusiveendScore
- - end score
Use Double.POSITIVE_INFINITY
or Double.NEGATIVE_INFINITY
to define infinity numbersendScoreInclusive
- - end score inclusivepublic org.reactivestreams.Publisher<Collection<V>> valueRangeReversed(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive, int offset, int count)
valueRangeReversed
in interface RScoredSortedSetReactive<V>
public org.reactivestreams.Publisher<Collection<ScoredEntry<V>>> entryRangeReversed(int startIndex, int endIndex)
entryRangeReversed
in interface RScoredSortedSetReactive<V>
public org.reactivestreams.Publisher<Collection<ScoredEntry<V>>> entryRangeReversed(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive)
entryRangeReversed
in interface RScoredSortedSetReactive<V>
public org.reactivestreams.Publisher<Collection<ScoredEntry<V>>> entryRangeReversed(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive, int offset, int count)
entryRangeReversed
in interface RScoredSortedSetReactive<V>
public org.reactivestreams.Publisher<V> pollLastFromAny(long timeout, TimeUnit unit, String... queueNames)
RScoredSortedSetReactive
Requires Redis 5.0.0 and higher.
pollLastFromAny
in interface RScoredSortedSetReactive<V>
timeout
- how long to wait before giving up, in units of
unit
unit
- a TimeUnit
determining how to interpret the
timeout
parameterqueueNames
- - names of queuenull
if all sorted sets are emptypublic org.reactivestreams.Publisher<V> pollFirstFromAny(long timeout, TimeUnit unit, String... queueNames)
RScoredSortedSetReactive
Requires Redis 5.0.0 and higher.
pollFirstFromAny
in interface RScoredSortedSetReactive<V>
timeout
- how long to wait before giving up, in units of
unit
unit
- a TimeUnit
determining how to interpret the
timeout
parameterqueueNames
- - names of queuenull
if all sorted sets are emptypublic org.reactivestreams.Publisher<V> pollFirst(long timeout, TimeUnit unit)
RScoredSortedSetReactive
null
if this sorted set is empty.
Requires Redis 5.0.0 and higher.
pollFirst
in interface RScoredSortedSetReactive<V>
timeout
- how long to wait before giving up, in units of
unit
unit
- a TimeUnit
determining how to interpret the
timeout
parameternull
if this sorted set is emptypublic org.reactivestreams.Publisher<V> pollLast(long timeout, TimeUnit unit)
RScoredSortedSetReactive
null
if this sorted set is empty.
Requires Redis 5.0.0 and higher.
pollLast
in interface RScoredSortedSetReactive<V>
timeout
- how long to wait before giving up, in units of
unit
unit
- a TimeUnit
determining how to interpret the
timeout
parameternull
if this sorted set is emptypublic org.reactivestreams.Publisher<Collection<V>> pollFirst(int count)
RScoredSortedSetReactive
null
if this sorted set is empty.pollFirst
in interface RScoredSortedSetReactive<V>
count
- - elements amountnull
if this sorted set is emptypublic org.reactivestreams.Publisher<Collection<V>> pollLast(int count)
RScoredSortedSetReactive
null
if this sorted set is empty.pollLast
in interface RScoredSortedSetReactive<V>
count
- - elements amountnull
if this sorted set is emptypublic org.reactivestreams.Publisher<Double> firstScore()
RScoredSortedSetReactive
null
if this sorted set is empty.firstScore
in interface RScoredSortedSetReactive<V>
null
if this sorted set is emptypublic org.reactivestreams.Publisher<Double> lastScore()
RScoredSortedSetReactive
null
if this sorted set is empty.lastScore
in interface RScoredSortedSetReactive<V>
null
if this sorted set is emptypublic org.reactivestreams.Publisher<V> iterator(String pattern)
RScoredSortedSetReactive
pattern
is not null then only elements match this pattern are loaded.iterator
in interface RScoredSortedSetReactive<V>
pattern
- - search patternpublic org.reactivestreams.Publisher<V> iterator(int count)
RScoredSortedSetReactive
count
param.iterator
in interface RScoredSortedSetReactive<V>
count
- - size of elements batchpublic org.reactivestreams.Publisher<V> iterator(String pattern, int count)
RScoredSortedSetReactive
count
param.
If pattern is not null then only elements match this pattern are loaded.iterator
in interface RScoredSortedSetReactive<V>
pattern
- - search patterncount
- - size of elements batchpublic org.reactivestreams.Publisher<Integer> revRank(V o)
RScoredSortedSetReactive
revRank
in interface RScoredSortedSetReactive<V>
o
- - objectnull
if value does not existpublic org.reactivestreams.Publisher<Long> addAll(Map<V,Double> objects)
addAll
in interface RScoredSortedSetReactive<V>
public org.reactivestreams.Publisher<Integer> addAndGetRank(double score, V object)
RScoredSortedSetReactive
addAndGetRank
in interface RScoredSortedSetReactive<V>
score
- - object scoreobject
- - object itselfpublic org.reactivestreams.Publisher<Integer> addAndGetRevRank(double score, V object)
RScoredSortedSetReactive
addAndGetRevRank
in interface RScoredSortedSetReactive<V>
score
- - object scoreobject
- - object itselfpublic org.reactivestreams.Publisher<Boolean> tryAdd(double score, V object)
RScoredSortedSetReactive
Requires Redis 3.0.2 and higher.
tryAdd
in interface RScoredSortedSetReactive<V>
score
- - object scoreobject
- - object itselftrue
if element has added and false
if not.public org.reactivestreams.Publisher<Integer> addScoreAndGetRevRank(V object, Number value)
RScoredSortedSetReactive
addScoreAndGetRevRank
in interface RScoredSortedSetReactive<V>
object
- - object itselfvalue
- - object scorepublic org.reactivestreams.Publisher<Integer> addScoreAndGetRank(V object, Number value)
RScoredSortedSetReactive
addScoreAndGetRank
in interface RScoredSortedSetReactive<V>
object
- - object itselfvalue
- - object scorepublic org.reactivestreams.Publisher<Set<V>> readSorted(SortOrder order)
RSortableReactive
readSorted
in interface RSortableReactive<V>
order
- for sorted datapublic org.reactivestreams.Publisher<Set<V>> readSorted(SortOrder order, int offset, int count)
RSortableReactive
readSorted
in interface RSortableReactive<V>
order
- for sorted dataoffset
- of sorted datacount
- of sorted datapublic org.reactivestreams.Publisher<Set<V>> readSorted(String byPattern, SortOrder order)
RSortableReactive
readSorted
in interface RSortableReactive<V>
byPattern
- that is used to generate the keys that are used for sortingorder
- for sorted datapublic org.reactivestreams.Publisher<Set<V>> readSorted(String byPattern, SortOrder order, int offset, int count)
RSortableReactive
readSorted
in interface RSortableReactive<V>
byPattern
- that is used to generate the keys that are used for sortingorder
- for sorted dataoffset
- of sorted datacount
- of sorted datapublic <T> org.reactivestreams.Publisher<Collection<T>> readSorted(String byPattern, List<String> getPatterns, SortOrder order)
RSortableReactive
readSorted
in interface RSortableReactive<V>
T
- object typebyPattern
- that is used to generate the keys that are used for sortinggetPatterns
- that is used to load values by keys in sorted vieworder
- for sorted datapublic <T> org.reactivestreams.Publisher<Collection<T>> readSorted(String byPattern, List<String> getPatterns, SortOrder order, int offset, int count)
RSortableReactive
readSorted
in interface RSortableReactive<V>
T
- object typebyPattern
- that is used to generate the keys that are used for sortinggetPatterns
- that is used to load values by keys in sorted vieworder
- for sorted dataoffset
- of sorted datacount
- of sorted datapublic org.reactivestreams.Publisher<Integer> sortTo(String destName, SortOrder order)
RSortableReactive
destName
listsortTo
in interface RSortableReactive<V>
destName
- list object destinationorder
- for sorted datapublic org.reactivestreams.Publisher<Integer> sortTo(String destName, SortOrder order, int offset, int count)
RSortableReactive
destName
listsortTo
in interface RSortableReactive<V>
destName
- list object destinationorder
- for sorted dataoffset
- of sorted datacount
- of sorted datapublic org.reactivestreams.Publisher<Integer> sortTo(String destName, String byPattern, SortOrder order)
RSortableReactive
destName
listsortTo
in interface RSortableReactive<V>
destName
- list object destinationbyPattern
- that is used to generate the keys that are used for sortingorder
- for sorted datapublic org.reactivestreams.Publisher<Integer> sortTo(String destName, String byPattern, SortOrder order, int offset, int count)
RSortableReactive
destName
listsortTo
in interface RSortableReactive<V>
destName
- list object destinationbyPattern
- that is used to generate the keys that are used for sortingorder
- for sorted dataoffset
- of sorted datacount
- of sorted datapublic org.reactivestreams.Publisher<Integer> sortTo(String destName, String byPattern, List<String> getPatterns, SortOrder order)
RSortableReactive
destName
listsortTo
in interface RSortableReactive<V>
destName
- list object destinationbyPattern
- that is used to generate the keys that are used for sortinggetPatterns
- that is used to load values by keys in sorted vieworder
- for sorted datapublic org.reactivestreams.Publisher<Integer> sortTo(String destName, String byPattern, List<String> getPatterns, SortOrder order, int offset, int count)
RSortableReactive
destName
listsortTo
in interface RSortableReactive<V>
destName
- list object destinationbyPattern
- that is used to generate the keys that are used for sortinggetPatterns
- that is used to load values by keys in sorted vieworder
- for sorted dataoffset
- of sorted datacount
- of sorted datapublic org.reactivestreams.Publisher<Boolean> expire(long timeToLive, TimeUnit timeUnit)
RExpirableReactive
expire
in interface RExpirableReactive
timeToLive
- - timeout before object will be deletedtimeUnit
- - timeout time unittrue
if the timeout was set and false
if notpublic org.reactivestreams.Publisher<Boolean> expireAt(long timestamp)
RExpirableReactive
expireAt
in interface RExpirableReactive
timestamp
- - expire date in milliseconds (Unix timestamp)true
if the timeout was set and false
if notpublic org.reactivestreams.Publisher<Boolean> expireAt(Date timestamp)
RExpirableReactive
expireAt
in interface RExpirableReactive
timestamp
- - expire datetrue
if the timeout was set and false
if notpublic org.reactivestreams.Publisher<Boolean> clearExpire()
RExpirableReactive
clearExpire
in interface RExpirableReactive
true
if the timeout was cleared and false
if notpublic org.reactivestreams.Publisher<Long> remainTimeToLive()
RExpirableReactive
remainTimeToLive
in interface RExpirableReactive
public <R> org.reactivestreams.Publisher<R> reactive(reactor.fn.Supplier<RFuture<R>> supplier)
protected <V> reactor.rx.Stream<V> newSucceeded(V result)
public String getName()
getName
in interface RObjectReactive
public Codec getCodec()
getCodec
in interface RObjectReactive
protected void encode(Collection<Object> params, Collection<?> values)
protected io.netty.buffer.ByteBuf encode(Object value)
protected io.netty.buffer.ByteBuf encodeMapKey(Object value)
protected io.netty.buffer.ByteBuf encodeMapValue(Object value)
public org.reactivestreams.Publisher<Void> restore(byte[] state)
RObjectReactive
RObjectReactive.dump()
method.restore
in interface RObjectReactive
state
- - state of objectpublic org.reactivestreams.Publisher<Void> restore(byte[] state, long timeToLive, TimeUnit timeUnit)
RObjectReactive
RObjectReactive.dump()
method and set time to live for it.restore
in interface RObjectReactive
state
- - state of objecttimeToLive
- - time to live of the objecttimeUnit
- - time unitpublic org.reactivestreams.Publisher<Void> restoreAndReplace(byte[] state)
RObjectReactive
restoreAndReplace
in interface RObjectReactive
state
- - state of the objectpublic org.reactivestreams.Publisher<Void> restoreAndReplace(byte[] state, long timeToLive, TimeUnit timeUnit)
RObjectReactive
restoreAndReplace
in interface RObjectReactive
state
- - state of the objecttimeToLive
- - time to live of the objecttimeUnit
- - time unitpublic org.reactivestreams.Publisher<byte[]> dump()
RObjectReactive
dump
in interface RObjectReactive
public org.reactivestreams.Publisher<Boolean> touch()
RObjectReactive
touch
in interface RObjectReactive
true
if object was touched else false
public org.reactivestreams.Publisher<Boolean> unlink()
RObjectReactive
Requires Redis 4.0+
unlink
in interface RObjectReactive
true
if it was exist and deleted else false
public org.reactivestreams.Publisher<Void> copy(String host, int port, int database, long timeout)
RObjectReactive
copy
in interface RObjectReactive
host
- - destination hostport
- - destination portdatabase
- - destination databasetimeout
- - maximum idle time in any moment of the communication with the destination instance in millisecondspublic org.reactivestreams.Publisher<Void> rename(String newName)
RObjectReactive
newName
in moderename
in interface RObjectReactive
newName
- - new name of objectpublic org.reactivestreams.Publisher<Void> migrate(String host, int port, int database, long timeout)
RObjectReactive
migrate
in interface RObjectReactive
host
- - destination hostport
- - destination portdatabase
- - destination databasetimeout
- - maximum idle time in any moment of the communication with the destination instance in millisecondspublic org.reactivestreams.Publisher<Boolean> move(int database)
RObjectReactive
move
in interface RObjectReactive
database
- - number of Redis databasetrue
if key was moved false
if notpublic org.reactivestreams.Publisher<Boolean> renamenx(String newName)
RObjectReactive
newName
in mode only if new key is not existsrenamenx
in interface RObjectReactive
newName
- - new name of objecttrue
if object has been renamed successfully and false
otherwisepublic org.reactivestreams.Publisher<Boolean> delete()
RObjectReactive
delete
in interface RObjectReactive
true
if object was deleted false
if notpublic org.reactivestreams.Publisher<Boolean> isExists()
RObjectReactive
isExists
in interface RObjectReactive
true
if object exists and false
otherwiseCopyright © 2014–2018 The Redisson Project. All rights reserved.