Package org.redisson.api
Interface RSetCacheReactive<V>
-
- Type Parameters:
V- value
- All Superinterfaces:
RCollectionReactive<V>,RDestroyable,RExpirableReactive,RObjectReactive
public interface RSetCacheReactive<V> extends RCollectionReactive<V>, RDestroyable
Reactive interface for RSetCache object- Author:
- Nikita Koksharov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description reactor.core.publisher.Mono<Boolean>add(V value, long ttl, TimeUnit unit)Stores value with specified time to live.RLockReactivegetFairLock(V value)ReturnsRLockinstance associated withvalueRLockReactivegetLock(V value)Returns lock instance associated withvalueRPermitExpirableSemaphoreReactivegetPermitExpirableSemaphore(V value)ReturnsRPermitExpirableSemaphoreinstance associated withvalueRReadWriteLockReactivegetReadWriteLock(V value)ReturnsRReadWriteLockinstance associated withvalueRSemaphoreReactivegetSemaphore(V value)ReturnsRSemaphoreinstance associated withvaluereactor.core.publisher.Mono<Set<V>>readAll()Read all elements at oncereactor.core.publisher.Mono<Integer>size()Returns the number of elements in cache.-
Methods inherited from interface org.redisson.api.RCollectionReactive
add, addAll, addAll, contains, containsAll, iterator, remove, removeAll, retainAll
-
Methods inherited from interface org.redisson.api.RDestroyable
destroy
-
Methods inherited from interface org.redisson.api.RExpirableReactive
clearExpire, expire, expireAt, expireAt, expireAt, remainTimeToLive
-
Methods inherited from interface org.redisson.api.RObjectReactive
addListener, copy, delete, dump, getCodec, getIdleTime, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlink
-
-
-
-
Method Detail
-
getPermitExpirableSemaphore
RPermitExpirableSemaphoreReactive getPermitExpirableSemaphore(V value)
ReturnsRPermitExpirableSemaphoreinstance associated withvalue- Parameters:
value- - set value- Returns:
- RPermitExpirableSemaphore object
-
getSemaphore
RSemaphoreReactive getSemaphore(V value)
ReturnsRSemaphoreinstance associated withvalue- Parameters:
value- - set value- Returns:
- RSemaphore object
-
getFairLock
RLockReactive getFairLock(V value)
ReturnsRLockinstance associated withvalue- Parameters:
value- - set value- Returns:
- RLock object
-
getReadWriteLock
RReadWriteLockReactive getReadWriteLock(V value)
ReturnsRReadWriteLockinstance associated withvalue- Parameters:
value- - set value- Returns:
- RReadWriteLock object
-
getLock
RLockReactive getLock(V value)
Returns lock instance associated withvalue- Parameters:
value- - set value- Returns:
- RLock object
-
add
reactor.core.publisher.Mono<Boolean> add(V value, long ttl, TimeUnit unit)
Stores value with specified time to live. Value expires after specified time to live.- Parameters:
value- to addttl- - time to live for key\value entry. If0then stores infinitely.unit- - time unit- Returns:
trueif value has been added.falseif value already been in collection.
-
size
reactor.core.publisher.Mono<Integer> size()
Returns the number of elements in cache. This number can reflects expired elements too due to non realtime cleanup process.- Specified by:
sizein interfaceRCollectionReactive<V>- Returns:
- size of collection
-
-