V
- type of valuepublic interface RSetRx<V> extends RCollectionRx<V>, RSortableRx<Set<V>>
Set
Modifier and Type | Method and Description |
---|---|
io.reactivex.Single<Integer> |
diff(String... names)
Diff sets specified by name and write to current set.
|
RLockRx |
getFairLock(V value)
Returns
RLock instance associated with value |
RLockRx |
getLock(V value)
Returns lock instance associated with
value |
RPermitExpirableSemaphoreRx |
getPermitExpirableSemaphore(V value)
Returns
RPermitExpirableSemaphore instance associated with value |
RReadWriteLockRx |
getReadWriteLock(V value)
Returns
RReadWriteLock instance associated with value |
RSemaphoreRx |
getSemaphore(V value)
Returns
RSemaphore instance associated with value |
io.reactivex.Single<Integer> |
intersection(String... names)
Intersection sets specified by name and write to current set.
|
io.reactivex.Flowable<V> |
iterator(int count)
Returns elements iterator fetches elements in a batch.
|
io.reactivex.Flowable<V> |
iterator(String pattern)
Returns elements iterator.
|
io.reactivex.Flowable<V> |
iterator(String pattern,
int count)
Returns elements iterator fetches elements in a batch.
|
io.reactivex.Single<Boolean> |
move(String destination,
V member)
Move a member from this set to the given destination set in async mode.
|
io.reactivex.Maybe<V> |
random()
Returns random element
|
io.reactivex.Single<Set<V>> |
random(int count)
Returns random elements from set limited by
count |
io.reactivex.Single<Set<V>> |
readAll()
Read all elements at once
|
io.reactivex.Single<Set<V>> |
readDiff(String... names)
Diff sets specified by name with current set.
|
io.reactivex.Single<Set<V>> |
readIntersection(String... names)
Intersection sets specified by name with current set.
|
io.reactivex.Single<Set<V>> |
readUnion(String... names)
Union sets specified by name with current set.
|
io.reactivex.Maybe<V> |
removeRandom()
Removes and returns random element
|
io.reactivex.Single<Set<V>> |
removeRandom(int amount)
Removes and returns random elements limited by
amount |
io.reactivex.Single<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, 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
RPermitExpirableSemaphoreRx getPermitExpirableSemaphore(V value)
RPermitExpirableSemaphore
instance associated with value
value
- - set valueRSemaphoreRx getSemaphore(V value)
RSemaphore
instance associated with value
value
- - set valueRLockRx getFairLock(V value)
RLock
instance associated with value
value
- - set valueRReadWriteLockRx getReadWriteLock(V value)
RReadWriteLock
instance associated with value
value
- - set valueRLockRx getLock(V value)
value
value
- - set valueio.reactivex.Flowable<V> iterator(int count)
count
param.count
- - size of elements batchio.reactivex.Flowable<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 batchio.reactivex.Flowable<V> iterator(String pattern)
pattern
is not null then only elements match this pattern are loaded.pattern
- - search patternio.reactivex.Single<Set<V>> removeRandom(int amount)
amount
amount
- of random elementsio.reactivex.Maybe<V> removeRandom()
io.reactivex.Maybe<V> random()
io.reactivex.Single<Set<V>> random(int count)
count
count
- - values amount to returnio.reactivex.Single<Boolean> move(String destination, V member)
destination
- the destination setmember
- the member to moveio.reactivex.Single<Integer> union(String... names)
names
- - name of setsio.reactivex.Single<Set<V>> readUnion(String... names)
names
- - name of setsio.reactivex.Single<Integer> diff(String... names)
names
- - name of setsio.reactivex.Single<Set<V>> readDiff(String... names)
names
- - name of setsio.reactivex.Single<Integer> intersection(String... names)
names
- - name of setsCopyright © 2014–2020 Redisson. All rights reserved.