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>> |
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<Integer> |
unionAsync(String... names)
Union sets specified by name and write to current set.
|
addAllAsync, addAsync, containsAllAsync, containsAsync, removeAllAsync, removeAsync, retainAllAsync, sizeAsync
clearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsync
deleteAsync, isExistsAsync, migrateAsync, moveAsync, renameAsync, renamenxAsync, touchAsync
readSortAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsync
RFuture<Set<V>> removeRandomAsync(int amount)
amount
- of random valuesRFuture<V> removeRandomAsync()
RFuture<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 setsCopyright © 2014–2017 The Redisson Project. All rights reserved.