V
- type of valuepublic interface RSetReactive<V> extends RCollectionReactive<V>, RSortableReactive<Set<V>>
Set
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<Integer> |
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<Integer> |
intersection(String... names)
Intersection sets specified by name and write to current set.
|
reactor.core.publisher.Flux<V> |
iterator(int count)
Returns elements iterator fetches elements in a batch.
|
reactor.core.publisher.Flux<V> |
iterator(String pattern)
Returns elements iterator.
|
reactor.core.publisher.Flux<V> |
iterator(String pattern,
int count)
Returns elements iterator fetches elements in a batch.
|
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
|
reactor.core.publisher.Mono<Set<V>> |
random(int count)
Returns random elements from set limited by
count |
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
|
reactor.core.publisher.Mono<Set<V>> |
removeRandom(int amount)
Removes and returns random elements limited by
amount |
reactor.core.publisher.Mono<Integer> |
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, expireAt, remainTimeToLive
addListener, copy, delete, dump, getCodec, getIdleTime, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, 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
is not null then only elements match this pattern are loaded.pattern
- - search patternreactor.core.publisher.Mono<Set<V>> removeRandom(int amount)
amount
amount
- of random elementsreactor.core.publisher.Mono<V> removeRandom()
reactor.core.publisher.Mono<V> random()
reactor.core.publisher.Mono<Set<V>> random(int count)
count
count
- - values amount to returnreactor.core.publisher.Mono<Boolean> move(String destination, V member)
destination
- the destination setmember
- the member to movereactor.core.publisher.Mono<Integer> union(String... names)
names
- - name of setsreactor.core.publisher.Mono<Set<V>> readUnion(String... names)
names
- - name of setsreactor.core.publisher.Mono<Integer> diff(String... names)
names
- - name of setsreactor.core.publisher.Mono<Set<V>> readDiff(String... names)
names
- - name of setsreactor.core.publisher.Mono<Integer> intersection(String... names)
names
- - name of setsCopyright © 2014–2021 Redisson. All rights reserved.