V - type of valuepublic interface RSet<V> extends Set<V>, RExpirable, RSetAsync<V>, RSortable<Set<V>>
Set| Modifier and Type | Method and Description |
|---|---|
int |
diff(String... names)
Diff sets specified by name and write to current set.
|
RCountDownLatch |
getCountDownLatch(V value)
Returns
RCountDownLatch instance associated with value |
RLock |
getFairLock(V value)
Returns
RLock instance associated with value |
RLock |
getLock(V value)
Returns lock instance associated with
value |
RPermitExpirableSemaphore |
getPermitExpirableSemaphore(V value)
Returns
RPermitExpirableSemaphore instance associated with value |
RReadWriteLock |
getReadWriteLock(V value)
Returns
RReadWriteLock instance associated with value |
RSemaphore |
getSemaphore(V value)
Returns
RSemaphore instance associated with value |
int |
intersection(String... names)
Intersection sets specified by name and write to current set.
|
Iterator<V> |
iterator(int count)
Returns elements iterator fetches elements in a batch.
|
Iterator<V> |
iterator(String pattern)
Returns elements iterator.
|
Iterator<V> |
iterator(String pattern,
int count)
Returns elements iterator fetches elements in a batch.
|
<KOut,VOut> |
mapReduce()
Returns
RMapReduce object associated with this object |
boolean |
move(String destination,
V member)
Move a member from this set to the given destination set in.
|
V |
random()
Returns random element
|
Set<V> |
random(int count)
Returns random elements from set limited by
count |
Set<V> |
readAll()
Read all elements at once
|
Set<V> |
readDiff(String... names)
Diff sets specified by name with current set.
|
Set<V> |
readIntersection(String... names)
Intersection sets specified by name with current set
without current set state change.
|
Set<V> |
readUnion(String... names)
Union sets specified by name with current set
without current set state change.
|
V |
removeRandom()
Removes and returns random element
|
Set<V> |
removeRandom(int amount)
Removes and returns random elements limited by
amount |
Stream<V> |
stream(int count)
Returns stream of elements fetches elements in a batch.
|
Stream<V> |
stream(String pattern)
Returns stream of elements.
|
Stream<V> |
stream(String pattern,
int count)
Returns stream of elements fetches elements in a batch.
|
boolean |
tryAdd(V... values)
Tries to add elements only if none of them in set.
|
int |
union(String... names)
Union sets specified by name and write to current set.
|
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, spliterator, toArray, toArrayparallelStream, removeIf, streamclearExpire, expire, expireAt, expireAt, remainTimeToLiveaddListener, copy, delete, dump, getCodec, getIdleTime, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlinkdiffAsync, intersectionAsync, moveAsync, randomAsync, randomAsync, readAllAsync, readDiffAsync, readIntersectionAsync, readUnionAsync, removeRandomAsync, removeRandomAsync, tryAddAsync, unionAsyncaddAllAsync, 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, unlinkAsyncreadSort, readSort, readSort, readSort, readSort, readSort, readSortAlpha, readSortAlpha, readSortAlpha, readSortAlpha, readSortAlpha, readSortAlpha, sortTo, sortTo, sortTo, sortTo, sortTo, sortToreadSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsyncRCountDownLatch getCountDownLatch(V value)
RCountDownLatch instance associated with valuevalue - - set valueRPermitExpirableSemaphore getPermitExpirableSemaphore(V value)
RPermitExpirableSemaphore instance associated with valuevalue - - set valueRSemaphore getSemaphore(V value)
RSemaphore instance associated with valuevalue - - set valueRLock getFairLock(V value)
RLock instance associated with valuevalue - - set valueRReadWriteLock getReadWriteLock(V value)
RReadWriteLock instance associated with valuevalue - - set valueRLock getLock(V value)
valuevalue - - set valueStream<V> stream(int count)
count param.count - - size of elements batchStream<V> stream(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 batchStream<V> stream(String pattern)
pattern - - search patternIterator<V> iterator(int count)
count param.count - - size of elements batchIterator<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 batchIterator<V> iterator(String pattern)
pattern is not null then only elements match this pattern are loaded.pattern - - search pattern<KOut,VOut> RCollectionMapReduce<V,KOut,VOut> mapReduce()
RMapReduce object associated with this objectKOut - output keyVOut - output valueSet<V> removeRandom(int amount)
amountamount - of random elementsV removeRandom()
V random()
Set<V> random(int count)
countcount - - values amount to returnboolean move(String destination, V member)
destination - the destination setmember - the member to moveint union(String... names)
names - - name of setsSet<V> readUnion(String... names)
names - - name of setsint diff(String... names)
names - - name of setsSet<V> readDiff(String... names)
names - - name of setsint intersection(String... names)
names - - name of setsSet<V> readIntersection(String... names)
names - - name of setsboolean tryAdd(V... values)
values - - values to addtrue if elements successfully added,
otherwise false.Copyright © 2014–2020 Redisson. All rights reserved.