V
- valuepublic class RedissonSetReactive<V> extends Object implements RSetReactive<V>
Set
Constructor and Description |
---|
RedissonSetReactive(Codec codec,
CommandReactiveExecutor commandExecutor,
String name) |
RedissonSetReactive(CommandReactiveExecutor commandExecutor,
String name) |
Modifier and Type | Method and Description |
---|---|
org.reactivestreams.Publisher<Long> |
add(V e) |
org.reactivestreams.Publisher<Long> |
addAll(Collection<? extends V> c) |
org.reactivestreams.Publisher<Long> |
addAll(org.reactivestreams.Publisher<? extends V> c) |
org.reactivestreams.Publisher<Boolean> |
clearExpire()
Clear an expire timeout or expire date for object in mode.
|
org.reactivestreams.Publisher<Boolean> |
contains(Object o) |
org.reactivestreams.Publisher<Boolean> |
containsAll(Collection<?> c) |
org.reactivestreams.Publisher<Boolean> |
delete()
Delete object in mode
|
org.reactivestreams.Publisher<Long> |
diff(String... names)
Diff sets specified by name and write to current set.
|
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<Long> |
intersection(String... names)
Intersection sets specified by name and write to current set.
|
org.reactivestreams.Publisher<Boolean> |
isExists()
Check object existence
|
org.reactivestreams.Publisher<V> |
iterator() |
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
|
org.reactivestreams.Publisher<Boolean> |
move(String destination,
V member)
Move a member from this set to the given destination set in async mode.
|
protected <V> reactor.rx.Stream<V> |
newSucceeded(V result) |
org.reactivestreams.Publisher<V> |
random()
Returns random element from set
in async mode
|
<R> org.reactivestreams.Publisher<R> |
reactive(RFuture<R> future) |
org.reactivestreams.Publisher<Set<V>> |
readIntersection(String... names)
Intersection sets specified by name with current set.
|
org.reactivestreams.Publisher<Set<V>> |
readUnion(String... names)
Union sets specified by name with current set.
|
org.reactivestreams.Publisher<Long> |
remainTimeToLive()
Get remaining time to live of object in milliseconds.
|
org.reactivestreams.Publisher<Boolean> |
remove(Object o) |
org.reactivestreams.Publisher<Boolean> |
removeAll(Collection<?> c) |
org.reactivestreams.Publisher<V> |
removeRandom()
Removes and returns random element from set
in async mode
|
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<Long> |
size() |
org.reactivestreams.Publisher<Long> |
union(String... names)
Union sets specified by name and write to current set.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clearExpire, expire, expireAt, expireAt, remainTimeToLive
public RedissonSetReactive(CommandReactiveExecutor commandExecutor, String name)
public RedissonSetReactive(Codec codec, CommandReactiveExecutor commandExecutor, String name)
public org.reactivestreams.Publisher<Long> addAll(org.reactivestreams.Publisher<? extends V> c)
addAll
in interface RCollectionReactive<V>
public org.reactivestreams.Publisher<Long> size()
size
in interface RCollectionReactive<V>
public org.reactivestreams.Publisher<Boolean> contains(Object o)
contains
in interface RCollectionReactive<V>
public org.reactivestreams.Publisher<Long> add(V e)
add
in interface RCollectionReactive<V>
public org.reactivestreams.Publisher<V> removeRandom()
RSetReactive
removeRandom
in interface RSetReactive<V>
public org.reactivestreams.Publisher<V> random()
RSetReactive
random
in interface RSetReactive<V>
public org.reactivestreams.Publisher<Boolean> remove(Object o)
remove
in interface RCollectionReactive<V>
public org.reactivestreams.Publisher<Boolean> move(String destination, V member)
RSetReactive
move
in interface RSetReactive<V>
destination
- the destination setmember
- the member to movepublic org.reactivestreams.Publisher<Boolean> containsAll(Collection<?> c)
containsAll
in interface RCollectionReactive<V>
public org.reactivestreams.Publisher<Long> addAll(Collection<? extends V> c)
addAll
in interface RCollectionReactive<V>
public org.reactivestreams.Publisher<Boolean> retainAll(Collection<?> c)
retainAll
in interface RCollectionReactive<V>
public org.reactivestreams.Publisher<Boolean> removeAll(Collection<?> c)
removeAll
in interface RCollectionReactive<V>
public org.reactivestreams.Publisher<Set<V>> readIntersection(String... names)
RSetReactive
readIntersection
in interface RSetReactive<V>
public org.reactivestreams.Publisher<Long> intersection(String... names)
RSetReactive
intersection
in interface RSetReactive<V>
public org.reactivestreams.Publisher<Long> diff(String... names)
RSetReactive
diff
in interface RSetReactive<V>
public org.reactivestreams.Publisher<Long> union(String... names)
RSetReactive
union
in interface RSetReactive<V>
public org.reactivestreams.Publisher<Set<V>> readUnion(String... names)
RSetReactive
readUnion
in interface RSetReactive<V>
public org.reactivestreams.Publisher<V> iterator()
iterator
in interface RCollectionReactive<V>
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
public <R> org.reactivestreams.Publisher<R> reactive(RFuture<R> future)
protected <V> reactor.rx.Stream<V> newSucceeded(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 notpublic org.reactivestreams.Publisher<Boolean> isExists()
RObjectReactive
isExists
in interface RObjectReactive
true
if object exists and false
otherwiseCopyright © 2014–2016 The Redisson Project. All rights reserved.