V
- valuepublic interface RSetReactive<V> extends RCollectionReactive<V>, RSortableReactive<Set<V>>
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<Long> |
diff(String... names)
Diff sets specified by name and write to current set.
|
RLockReactive |
getFairLock(V value)
Returns
RLock instance associated with value |
RLockReactive |
getLock(V value)
Returns lock instance associated with
value |
RPermitExpirableSemaphoreReactive |
getPermitExpirableSemaphore(V value)
Returns
RPermitExpirableSemaphore instance associated with value |
RReadWriteLockReactive |
getReadWriteLock(V value)
Returns
RReadWriteLock instance associated with value |
RSemaphoreReactive |
getSemaphore(V value)
Returns
RSemaphore instance associated with value |
reactor.core.publisher.Mono<Long> |
intersection(String... names)
Intersection sets specified by name and write to current set.
|
reactor.core.publisher.Flux<V> |
iterator(int count)
Returns an iterator over elements in this set.
|
reactor.core.publisher.Flux<V> |
iterator(String pattern)
Returns iterator over elements in this set matches
pattern . |
reactor.core.publisher.Flux<V> |
iterator(String pattern,
int count)
Returns an iterator over elements in this set.
|
reactor.core.publisher.Mono<Boolean> |
move(String destination,
V member)
Move a member from this set to the given destination set in async mode.
|
reactor.core.publisher.Mono<V> |
random()
Returns random element from set
in async mode
|
reactor.core.publisher.Mono<Set<V>> |
readAll()
Read all elements at once
|
reactor.core.publisher.Mono<Set<V>> |
readDiff(String... names)
Diff sets specified by name with current set.
|
reactor.core.publisher.Mono<Set<V>> |
readIntersection(String... names)
Intersection sets specified by name with current set.
|
reactor.core.publisher.Mono<Set<V>> |
readUnion(String... names)
Union sets specified by name with current set.
|
reactor.core.publisher.Mono<V> |
removeRandom()
Removes and returns random element from set
in async mode
|
reactor.core.publisher.Mono<Set<V>> |
removeRandom(int amount)
Removes and returns random elements from set
in async mode
|
reactor.core.publisher.Mono<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
copy, delete, dump, getCodec, getName, isExists, migrate, move, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, touch, unlink
readSorted, readSorted, readSorted, readSorted, readSorted, readSorted, sortTo, sortTo, sortTo, sortTo, sortTo, sortTo
RPermitExpirableSemaphoreReactive getPermitExpirableSemaphore(V value)
RPermitExpirableSemaphore
instance associated with value
value
- - set valueRSemaphoreReactive getSemaphore(V value)
RSemaphore
instance associated with value
value
- - set valueRLockReactive getFairLock(V value)
RLock
instance associated with value
value
- - set valueRReadWriteLockReactive getReadWriteLock(V value)
RReadWriteLock
instance associated with value
value
- - set valueRLockReactive getLock(V value)
value
value
- - set valuereactor.core.publisher.Flux<V> iterator(int count)
count
param.count
- - size of elements batchreactor.core.publisher.Flux<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 batchreactor.core.publisher.Flux<V> iterator(String pattern)
pattern
.pattern
- - search patternreactor.core.publisher.Mono<Set<V>> removeRandom(int amount)
amount
- of random valuesreactor.core.publisher.Mono<V> removeRandom()
reactor.core.publisher.Mono<V> random()
reactor.core.publisher.Mono<Boolean> move(String destination, V member)
destination
- the destination setmember
- the member to movereactor.core.publisher.Mono<Long> union(String... names)
names
- - name of setsreactor.core.publisher.Mono<Set<V>> readUnion(String... names)
names
- - name of setsreactor.core.publisher.Mono<Long> diff(String... names)
names
- - name of setsreactor.core.publisher.Mono<Set<V>> readDiff(String... names)
names
- - name of setsreactor.core.publisher.Mono<Long> intersection(String... names)
names
- - name of setsCopyright © 2014–2019 The Redisson Project. All rights reserved.