V - value typepublic class RedissonScoredSortedSetReactive<V> extends Object implements RScoredSortedSetReactive<V>
| Constructor and 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 and Description |
|---|---|
org.reactivestreams.Publisher<Boolean> |
add(double score,
V object) |
org.reactivestreams.Publisher<Double> |
addScore(V object,
Number value) |
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<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
|
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) |
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(Date timestamp)
Set an expire date for object in mode.
|
org.reactivestreams.Publisher<Boolean> |
expireAt(long timestamp)
Set an expire date for object in mode.
|
org.reactivestreams.Publisher<V> |
first() |
Codec |
getCodec() |
String |
getName() |
org.reactivestreams.Publisher<Double> |
getScore(V o) |
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,
Map<String,Double> nameWithWeight)
Intersect provided ScoredSortedSets mapped to weight multiplier
with defined aggregation method
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(String... names)
Intersect provided ScoredSortedSets
and store result to current ScoredSortedSet
|
org.reactivestreams.Publisher<Boolean> |
isExists()
Check object existence
|
org.reactivestreams.Publisher<V> |
iterator() |
org.reactivestreams.Publisher<V> |
last() |
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.core.publisher.Mono<V> |
newSucceeded(V result) |
org.reactivestreams.Publisher<V> |
pollFirst() |
org.reactivestreams.Publisher<V> |
pollLast() |
org.reactivestreams.Publisher<Integer> |
rank(V o) |
<R> org.reactivestreams.Publisher<R> |
reactive(Supplier<RFuture<R>> supplier) |
org.reactivestreams.Publisher<Collection<V>> |
readAll()
Read all values at once.
|
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<Boolean> |
retainAll(Collection<?> c) |
org.reactivestreams.Publisher<Integer> |
size() |
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,
Map<String,Double> nameWithWeight)
Union provided ScoredSortedSets mapped to weight multiplier
with defined aggregation method
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(String... names)
Union provided ScoredSortedSets
and store result to current ScoredSortedSet
|
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, waitclearExpire, expire, expireAt, expireAt, remainTimeToLivepublic 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()
pollFirst in interface RScoredSortedSetReactive<V>public org.reactivestreams.Publisher<V> pollLast()
pollLast in interface RScoredSortedSetReactive<V>public org.reactivestreams.Publisher<V> first()
first in interface RScoredSortedSetReactive<V>public org.reactivestreams.Publisher<V> last()
last in interface RScoredSortedSetReactive<V>public org.reactivestreams.Publisher<Boolean> add(double score, V object)
add in interface RScoredSortedSetReactive<V>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)
rank in interface RScoredSortedSetReactive<V>public 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)
RScoredSortedSetReactivestartScore and endScore.count in interface RScoredSortedSetReactive<V>startScore - - start scorestartScoreInclusive - - start score inclusiveendScore - - end scoreendScoreInclusive - - end score inclusivepublic org.reactivestreams.Publisher<Collection<V>> readAll()
RScoredSortedSetReactivereadAll in interface RScoredSortedSetReactive<V>public org.reactivestreams.Publisher<Integer> intersection(String... names)
RScoredSortedSetReactiveintersection in interface RScoredSortedSetReactive<V>names - - names of ScoredSortedSetpublic org.reactivestreams.Publisher<Integer> intersection(RScoredSortedSet.Aggregate aggregate, String... names)
RScoredSortedSetReactiveintersection in interface RScoredSortedSetReactive<V>aggregate - - score aggregation modenames - - names of ScoredSortedSetpublic org.reactivestreams.Publisher<Integer> intersection(Map<String,Double> nameWithWeight)
RScoredSortedSetReactiveintersection in interface RScoredSortedSetReactive<V>nameWithWeight - - name of ScoredSortedSet mapped to weight multiplierpublic org.reactivestreams.Publisher<Integer> intersection(RScoredSortedSet.Aggregate aggregate, Map<String,Double> nameWithWeight)
RScoredSortedSetReactiveintersection in interface RScoredSortedSetReactive<V>aggregate - - score aggregation modenameWithWeight - - name of ScoredSortedSet mapped to weight multiplierpublic org.reactivestreams.Publisher<Integer> union(String... names)
RScoredSortedSetReactiveunion in interface RScoredSortedSetReactive<V>names - - names of ScoredSortedSetpublic org.reactivestreams.Publisher<Integer> union(RScoredSortedSet.Aggregate aggregate, String... names)
RScoredSortedSetReactiveunion in interface RScoredSortedSetReactive<V>aggregate - - score aggregation modenames - - names of ScoredSortedSetpublic org.reactivestreams.Publisher<Integer> union(Map<String,Double> nameWithWeight)
RScoredSortedSetReactiveunion in interface RScoredSortedSetReactive<V>nameWithWeight - - name of ScoredSortedSet mapped to weight multiplierpublic org.reactivestreams.Publisher<Integer> union(RScoredSortedSet.Aggregate aggregate, Map<String,Double> nameWithWeight)
RScoredSortedSetReactiveunion 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)
RScoredSortedSetReactivestartScore 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<Boolean> expire(long timeToLive, TimeUnit timeUnit)
RExpirableReactiveexpire in interface RExpirableReactivetimeToLive - - 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)
RExpirableReactiveexpireAt in interface RExpirableReactivetimestamp - - expire date in milliseconds (Unix timestamp)true if the timeout was set and false if notpublic org.reactivestreams.Publisher<Boolean> expireAt(Date timestamp)
RExpirableReactiveexpireAt in interface RExpirableReactivetimestamp - - expire datetrue if the timeout was set and false if notpublic org.reactivestreams.Publisher<Boolean> clearExpire()
RExpirableReactiveclearExpire in interface RExpirableReactivetrue if the timeout was cleared and false if notpublic org.reactivestreams.Publisher<Long> remainTimeToLive()
RExpirableReactiveremainTimeToLive in interface RExpirableReactiveprotected <V> reactor.core.publisher.Mono<V> newSucceeded(V result)
public String getName()
getName in interface RObjectReactivepublic Codec getCodec()
getCodec in interface RObjectReactiveprotected 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> rename(String newName)
RObjectReactivenewName
in moderename in interface RObjectReactivenewName - - new name of objectpublic org.reactivestreams.Publisher<Void> migrate(String host, int port, int database, long timeout)
RObjectReactivemigrate in interface RObjectReactivehost - - 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)
RObjectReactivemove in interface RObjectReactivedatabase - - number of Redis databasetrue if key was moved false if notpublic org.reactivestreams.Publisher<Boolean> renamenx(String newName)
RObjectReactivenewName
in mode only if new key is not existsrenamenx in interface RObjectReactivenewName - - new name of objecttrue if object has been renamed successfully and false otherwisepublic org.reactivestreams.Publisher<Boolean> delete()
RObjectReactivedelete in interface RObjectReactivetrue if object was deleted false if notpublic org.reactivestreams.Publisher<Boolean> isExists()
RObjectReactiveisExists in interface RObjectReactivetrue if object exists and false otherwiseCopyright © 2014–2018 The Redisson Project. All rights reserved.