V
- valuepublic interface RSetCacheRx<V> extends RCollectionRx<V>
Modifier and Type | Method and Description |
---|---|
io.reactivex.Flowable<Boolean> |
add(V value,
long ttl,
TimeUnit unit)
Stores value with specified time to live.
|
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.Flowable<Set<V>> |
readAll()
Read all elements at once
|
io.reactivex.Flowable<Integer> |
size()
Returns the number of elements in cache.
|
add, addAll, addAll, contains, containsAll, iterator, remove, removeAll, retainAll
clearExpire, expire, expireAt, expireAt, remainTimeToLive
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<Boolean> add(V value, long ttl, TimeUnit unit)
value
- to addttl
- - time to live for key\value entry.
If 0
then stores infinitely.unit
- - time unittrue
if value has been added. false
if value already been in collection.io.reactivex.Flowable<Integer> size()
size
in interface RCollectionRx<V>
Copyright © 2014–2019 The Redisson Project. All rights reserved.