V - valuepublic interface RSetAsync<V> extends RCollectionAsync<V>, RSortableAsync<Set<V>>
| Modifier and Type | Method and Description |
|---|---|
RFuture<Integer> |
diffAsync(String... names)
Diff sets specified by name and write to current set.
|
RFuture<Integer> |
intersectionAsync(String... names)
Intersection sets specified by name and write to current set.
|
RFuture<Boolean> |
moveAsync(String destination,
V member)
Move a member from this set to the given destination set in async mode.
|
RFuture<V> |
randomAsync()
Returns random element from set
in async mode
|
RFuture<Set<V>> |
randomAsync(int count)
Returns random elements from set limited by
count |
RFuture<Set<V>> |
readAllAsync()
Read all elements at once
|
RFuture<Set<V>> |
readDiffAsync(String... names)
Diff sets specified by name with current set.
|
RFuture<Set<V>> |
readIntersectionAsync(String... names)
Intersection sets specified by name with current set.
|
RFuture<Set<V>> |
readUnionAsync(String... names)
Union sets specified by name with current set.
|
RFuture<V> |
removeRandomAsync()
Removes and returns random element from set
in async mode
|
RFuture<Set<V>> |
removeRandomAsync(int amount)
Removes and returns random elements from set
in async mode
|
RFuture<Boolean> |
tryAddAsync(V... values)
Tries to add elements only if none of them in set.
|
RFuture<Integer> |
unionAsync(String... names)
Union sets specified by name and write to current set.
|
addAllAsync, addAsync, containsAllAsync, containsAsync, removeAllAsync, removeAsync, retainAllAsync, sizeAsyncclearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsyncaddListenerAsync, copyAsync, deleteAsync, dumpAsync, getIdleTimeAsync, isExistsAsync, migrateAsync, moveAsync, removeListenerAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, touchAsync, unlinkAsyncreadSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsyncRFuture<Set<V>> removeRandomAsync(int amount)
amount - of random valuesRFuture<V> removeRandomAsync()
RFuture<Set<V>> randomAsync(int count)
countcount - - values amount to returnRFuture<Boolean> moveAsync(String destination, V member)
destination - the destination setmember - the member to movetrue if the element is moved, false if the element is not a
member of this set or no operation was performedRFuture<Integer> unionAsync(String... names)
names - - name of setsRFuture<Set<V>> readUnionAsync(String... names)
names - - name of setsRFuture<Integer> diffAsync(String... names)
names - - name of setsRFuture<Set<V>> readDiffAsync(String... names)
names - - name of setsRFuture<Integer> intersectionAsync(String... names)
names - - name of setsRFuture<Set<V>> readIntersectionAsync(String... names)
names - - name of setsCopyright © 2014–2020 Redisson. All rights reserved.