public class RedissonLexSortedSetReactive extends RedissonScoredSortedSetReactive<String> implements RLexSortedSetReactive
| Constructor and Description |
|---|
RedissonLexSortedSetReactive(CommandReactiveExecutor commandExecutor,
String name) |
| Modifier and Type | Method and Description |
|---|---|
org.reactivestreams.Publisher<Integer> |
add(String e) |
org.reactivestreams.Publisher<Integer> |
addAll(Collection<? extends String> c) |
org.reactivestreams.Publisher<Integer> |
addAll(org.reactivestreams.Publisher<? extends String> c) |
org.reactivestreams.Publisher<Boolean> |
clearExpire()
Clear an expire timeout or expire date for object in mode.
|
org.reactivestreams.Publisher<Integer> |
count(String fromElement,
boolean fromInclusive,
String toElement,
boolean toInclusive) |
org.reactivestreams.Publisher<Integer> |
countHead(String toElement,
boolean toInclusive) |
org.reactivestreams.Publisher<Integer> |
countTail(String fromElement,
boolean fromInclusive) |
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<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.
|
Codec |
getCodec() |
String |
getName() |
org.reactivestreams.Publisher<Boolean> |
isExists()
Check object existence
|
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<Collection<String>> |
range(int startIndex,
int endIndex) |
org.reactivestreams.Publisher<Collection<String>> |
range(String fromElement,
boolean fromInclusive,
String toElement,
boolean toInclusive) |
org.reactivestreams.Publisher<Collection<String>> |
range(String fromElement,
boolean fromInclusive,
String toElement,
boolean toInclusive,
int offset,
int count) |
org.reactivestreams.Publisher<Collection<String>> |
rangeHead(String toElement,
boolean toInclusive) |
org.reactivestreams.Publisher<Collection<String>> |
rangeHead(String toElement,
boolean toInclusive,
int offset,
int count) |
org.reactivestreams.Publisher<Collection<String>> |
rangeTail(String fromElement,
boolean fromInclusive) |
org.reactivestreams.Publisher<Collection<String>> |
rangeTail(String fromElement,
boolean fromInclusive,
int offset,
int count) |
<R> org.reactivestreams.Publisher<R> |
reactive(Supplier<RFuture<R>> supplier) |
org.reactivestreams.Publisher<Long> |
remainTimeToLive()
Get remaining time to live of object in milliseconds.
|
org.reactivestreams.Publisher<Integer> |
removeRange(String fromElement,
boolean fromInclusive,
String toElement,
boolean toInclusive) |
org.reactivestreams.Publisher<Integer> |
removeRangeHead(String toElement,
boolean toInclusive) |
org.reactivestreams.Publisher<Integer> |
removeRangeTail(String fromElement,
boolean fromInclusive) |
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 |
add, addScore, contains, containsAll, count, entryRange, entryRange, entryRange, entryRangeReversed, entryRangeReversed, entryRangeReversed, first, getScore, intersection, intersection, intersection, intersection, iterator, last, pollFirst, pollLast, rank, readAll, remove, removeAll, removeRangeByRank, removeRangeByScore, retainAll, size, union, union, union, union, valueRange, valueRange, valueRange, valueRangeReversed, valueRangeReversed, valueRangeReversedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadd, addScore, contains, containsAll, count, entryRange, entryRange, entryRange, entryRangeReversed, entryRangeReversed, entryRangeReversed, first, getScore, intersection, intersection, intersection, intersection, iterator, last, pollFirst, pollLast, rank, readAll, remove, removeAll, removeRangeByRank, removeRangeByScore, retainAll, size, union, union, union, union, valueRange, valueRange, valueRange, valueRangeReversed, valueRangeReversed, valueRangeReversedcontains, containsAll, iterator, remove, removeAll, retainAll, sizeclearExpire, expire, expireAt, expireAt, remainTimeToLivepublic RedissonLexSortedSetReactive(CommandReactiveExecutor commandExecutor, String name)
public org.reactivestreams.Publisher<Integer> addAll(org.reactivestreams.Publisher<? extends String> c)
addAll in interface RCollectionReactive<String>public org.reactivestreams.Publisher<Integer> removeRangeHead(String toElement, boolean toInclusive)
removeRangeHead in interface RLexSortedSetReactivepublic org.reactivestreams.Publisher<Integer> removeRangeTail(String fromElement, boolean fromInclusive)
removeRangeTail in interface RLexSortedSetReactivepublic org.reactivestreams.Publisher<Integer> removeRange(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive)
removeRange in interface RLexSortedSetReactivepublic org.reactivestreams.Publisher<Collection<String>> rangeHead(String toElement, boolean toInclusive)
rangeHead in interface RLexSortedSetReactivepublic org.reactivestreams.Publisher<Collection<String>> rangeTail(String fromElement, boolean fromInclusive)
rangeTail in interface RLexSortedSetReactivepublic org.reactivestreams.Publisher<Collection<String>> range(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive)
range in interface RLexSortedSetReactivepublic org.reactivestreams.Publisher<Collection<String>> rangeHead(String toElement, boolean toInclusive, int offset, int count)
rangeHead in interface RLexSortedSetReactivepublic org.reactivestreams.Publisher<Collection<String>> rangeTail(String fromElement, boolean fromInclusive, int offset, int count)
rangeTail in interface RLexSortedSetReactivepublic org.reactivestreams.Publisher<Collection<String>> range(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive, int offset, int count)
range in interface RLexSortedSetReactivepublic org.reactivestreams.Publisher<Integer> countTail(String fromElement, boolean fromInclusive)
countTail in interface RLexSortedSetReactivepublic org.reactivestreams.Publisher<Integer> countHead(String toElement, boolean toInclusive)
countHead in interface RLexSortedSetReactivepublic org.reactivestreams.Publisher<Integer> count(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive)
count in interface RLexSortedSetReactivepublic org.reactivestreams.Publisher<Integer> add(String e)
add in interface RCollectionReactive<String>public org.reactivestreams.Publisher<Integer> addAll(Collection<? extends String> c)
addAll in interface RCollectionReactive<String>public org.reactivestreams.Publisher<Collection<String>> range(int startIndex, int endIndex)
range in interface RLexSortedSetReactivepublic 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.