V
- valuepublic interface RSetReactive<V> extends RCollectionReactive<V>
Modifier and Type | Method and Description |
---|---|
org.reactivestreams.Publisher<Long> |
diff(String... names)
Diff sets specified by name and write to current set.
|
org.reactivestreams.Publisher<Long> |
intersection(String... names)
Intersection sets specified by name and write to current set.
|
org.reactivestreams.Publisher<V> |
iterator(int count)
Returns an iterator over elements in this set.
|
org.reactivestreams.Publisher<V> |
iterator(String pattern)
Returns iterator over elements in this set matches
pattern . |
org.reactivestreams.Publisher<V> |
iterator(String pattern,
int count)
Returns an iterator over elements in this set.
|
org.reactivestreams.Publisher<Boolean> |
move(String destination,
V member)
Move a member from this set to the given destination set in async mode.
|
org.reactivestreams.Publisher<V> |
random()
Returns random element from set
in async mode
|
org.reactivestreams.Publisher<Set<V>> |
readAll()
Read all elements at once
|
org.reactivestreams.Publisher<Set<V>> |
readDiff(String... names)
Diff sets specified by name with current set.
|
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<V> |
removeRandom()
Removes and returns random element from set
in async mode
|
org.reactivestreams.Publisher<Set<V>> |
removeRandom(int amount)
Removes and returns random elements from set
in async mode
|
org.reactivestreams.Publisher<Long> |
union(String... names)
Union sets specified by name and write to current set.
|
add, addAll, addAll, contains, containsAll, iterator, remove, removeAll, retainAll, size
clearExpire, expire, expireAt, expireAt, remainTimeToLive
org.reactivestreams.Publisher<V> iterator(int count)
count
param.count
- - size of elements batchorg.reactivestreams.Publisher<V> iterator(String pattern, int count)
count
param.
If pattern is not null then only elements match this pattern are loaded.pattern
- - search patterncount
- - size of elements batchorg.reactivestreams.Publisher<V> iterator(String pattern)
pattern
.pattern
- - search patternorg.reactivestreams.Publisher<Set<V>> removeRandom(int amount)
amount
- of random valuesorg.reactivestreams.Publisher<V> removeRandom()
org.reactivestreams.Publisher<V> random()
org.reactivestreams.Publisher<Boolean> move(String destination, V member)
destination
- the destination setmember
- the member to moveorg.reactivestreams.Publisher<Long> union(String... names)
names
- - name of setsorg.reactivestreams.Publisher<Set<V>> readUnion(String... names)
names
- - name of setsorg.reactivestreams.Publisher<Long> diff(String... names)
names
- - name of setsorg.reactivestreams.Publisher<Set<V>> readDiff(String... names)
names
- - name of setsorg.reactivestreams.Publisher<Long> intersection(String... names)
names
- - name of setsCopyright © 2014–2018 The Redisson Project. All rights reserved.