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<Long> |
add(String e) |
org.reactivestreams.Publisher<Long> |
addAll(Collection<? extends String> c) |
org.reactivestreams.Publisher<Long> |
addAll(org.reactivestreams.Publisher<? extends String> c) |
protected org.reactivestreams.Publisher<Long> |
addAll(org.reactivestreams.Publisher<? extends V> c,
reactor.fn.Function<V,org.reactivestreams.Publisher<Long>> function,
reactor.fn.BiFunction<Long,Long,Long> sizeFunc) |
org.reactivestreams.Publisher<Boolean> |
clearExpire()
Clear an expire timeout or expire date for object in mode.
|
org.reactivestreams.Publisher<Boolean> |
delete()
Delete object in mode
|
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.
|
String |
getName() |
org.reactivestreams.Publisher<Integer> |
lexCount(String fromElement,
boolean fromInclusive,
String toElement,
boolean toInclusive) |
org.reactivestreams.Publisher<Integer> |
lexCountHead(String toElement,
boolean toInclusive) |
org.reactivestreams.Publisher<Integer> |
lexCountTail(String fromElement,
boolean fromInclusive) |
org.reactivestreams.Publisher<Collection<String>> |
lexRange(String fromElement,
boolean fromInclusive,
String toElement,
boolean toInclusive) |
org.reactivestreams.Publisher<Collection<String>> |
lexRange(String fromElement,
boolean fromInclusive,
String toElement,
boolean toInclusive,
int offset,
int count) |
org.reactivestreams.Publisher<Collection<String>> |
lexRangeHead(String toElement,
boolean toInclusive) |
org.reactivestreams.Publisher<Collection<String>> |
lexRangeHead(String toElement,
boolean toInclusive,
int offset,
int count) |
org.reactivestreams.Publisher<Collection<String>> |
lexRangeTail(String fromElement,
boolean fromInclusive) |
org.reactivestreams.Publisher<Collection<String>> |
lexRangeTail(String fromElement,
boolean fromInclusive,
int offset,
int count) |
org.reactivestreams.Publisher<Void> |
migrate(String host,
int port,
int database)
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> |
newSucceededObservable(V result) |
org.reactivestreams.Publisher<Long> |
remainTimeToLive()
Get remaining time to live of object in milliseconds.
|
org.reactivestreams.Publisher<Integer> |
removeRangeByLex(String fromElement,
boolean fromInclusive,
String toElement,
boolean toInclusive) |
org.reactivestreams.Publisher<Integer> |
removeRangeHeadByLex(String toElement,
boolean toInclusive) |
org.reactivestreams.Publisher<Integer> |
removeRangeTailByLex(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 |
protected <V> org.reactivestreams.Subscriber<V> |
toSubscriber(org.reactivestreams.Subscriber<V> promise) |
add, addScore, contains, containsAll, entryRange, entryRange, entryRange, first, getScore, iterator, last, pollFirst, pollLast, rank, remove, removeAll, removeRangeByRank, removeRangeByScore, retainAll, size, valueRange, valueRange, valueRange
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
rank, valueRange
contains, containsAll, iterator, remove, removeAll, retainAll, size
clearExpire, expire, expireAt, expireAt, remainTimeToLive
public RedissonLexSortedSetReactive(CommandReactiveExecutor commandExecutor, String name)
public org.reactivestreams.Publisher<Long> addAll(org.reactivestreams.Publisher<? extends String> c)
addAll
in interface RCollectionReactive<String>
public org.reactivestreams.Publisher<Integer> removeRangeHeadByLex(String toElement, boolean toInclusive)
removeRangeHeadByLex
in interface RLexSortedSetReactive
public org.reactivestreams.Publisher<Integer> removeRangeTailByLex(String fromElement, boolean fromInclusive)
removeRangeTailByLex
in interface RLexSortedSetReactive
public org.reactivestreams.Publisher<Integer> removeRangeByLex(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive)
removeRangeByLex
in interface RLexSortedSetReactive
public org.reactivestreams.Publisher<Collection<String>> lexRangeHead(String toElement, boolean toInclusive)
lexRangeHead
in interface RLexSortedSetReactive
public org.reactivestreams.Publisher<Collection<String>> lexRangeTail(String fromElement, boolean fromInclusive)
lexRangeTail
in interface RLexSortedSetReactive
public org.reactivestreams.Publisher<Collection<String>> lexRange(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive)
lexRange
in interface RLexSortedSetReactive
public org.reactivestreams.Publisher<Collection<String>> lexRangeHead(String toElement, boolean toInclusive, int offset, int count)
lexRangeHead
in interface RLexSortedSetReactive
public org.reactivestreams.Publisher<Collection<String>> lexRangeTail(String fromElement, boolean fromInclusive, int offset, int count)
lexRangeTail
in interface RLexSortedSetReactive
public org.reactivestreams.Publisher<Collection<String>> lexRange(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive, int offset, int count)
lexRange
in interface RLexSortedSetReactive
public org.reactivestreams.Publisher<Integer> lexCountTail(String fromElement, boolean fromInclusive)
lexCountTail
in interface RLexSortedSetReactive
public org.reactivestreams.Publisher<Integer> lexCountHead(String toElement, boolean toInclusive)
lexCountHead
in interface RLexSortedSetReactive
public org.reactivestreams.Publisher<Integer> lexCount(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive)
lexCount
in interface RLexSortedSetReactive
public org.reactivestreams.Publisher<Long> add(String e)
add
in interface RCollectionReactive<String>
public org.reactivestreams.Publisher<Long> addAll(Collection<? extends String> c)
addAll
in interface RCollectionReactive<String>
protected org.reactivestreams.Publisher<Long> addAll(org.reactivestreams.Publisher<? extends V> c, reactor.fn.Function<V,org.reactivestreams.Publisher<Long>> function, reactor.fn.BiFunction<Long,Long,Long> sizeFunc)
public 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
protected <V> org.reactivestreams.Subscriber<V> toSubscriber(org.reactivestreams.Subscriber<V> promise)
protected <V> reactor.rx.Stream<V> newSucceededObservable(V result)
public String getName()
getName
in interface RObjectReactive
public org.reactivestreams.Publisher<Void> rename(String newName)
RObjectReactive
newName
in moderename
in interface RObjectReactive
public org.reactivestreams.Publisher<Void> migrate(String host, int port, int database)
RObjectReactive
migrate
in interface RObjectReactive
host
- - destination hostport
- - destination portdatabase
- - destination databasepublic org.reactivestreams.Publisher<Boolean> move(int database)
RObjectReactive
move
in interface RObjectReactive
true
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
public org.reactivestreams.Publisher<Boolean> delete()
RObjectReactive
delete
in interface RObjectReactive
true
if object was deleted false
if notCopyright © 2014–2015. All rights reserved.