V - valuepublic interface RSetRx<V> extends RCollectionRx<V>, RSortableRx<Set<V>>
| 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 an iterator over elements in this set.
|
io.reactivex.Flowable<V> |
iterator(String pattern)
Returns iterator over elements in this set matches
pattern. |
io.reactivex.Flowable<V> |
iterator(String pattern,
int count)
Returns an iterator over elements in this set.
|
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 from set
in async mode
|
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 from set
in async mode
|
io.reactivex.Single<Set<V>> |
removeRandom(int amount)
Removes and returns random elements from set
in async mode
|
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, sizeclearExpire, expire, expireAt, expireAt, remainTimeToLiveaddListener, copy, delete, dump, getCodec, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlinkreadSorted, readSorted, readSorted, readSorted, readSorted, readSorted, sortTo, sortTo, sortTo, sortTo, sortTo, sortToRPermitExpirableSemaphoreRx getPermitExpirableSemaphore(V value)
RPermitExpirableSemaphore instance associated with valuevalue - - set valueRSemaphoreRx getSemaphore(V value)
RSemaphore instance associated with valuevalue - - set valueRLockRx getFairLock(V value)
RLock instance associated with valuevalue - - set valueRReadWriteLockRx getReadWriteLock(V value)
RReadWriteLock instance associated with valuevalue - - set valueRLockRx getLock(V value)
valuevalue - - 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.pattern - - search patternio.reactivex.Single<Set<V>> removeRandom(int amount)
amount - of random valuesio.reactivex.Maybe<V> removeRandom()
io.reactivex.Maybe<V> random()
io.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–2019 Redisson. All rights reserved.