RObjectReactive
RAtomicDoubleReactive
, RAtomicLongReactive
, RBitSetReactive
, RBlockingDequeReactive<V>
, RBlockingQueueReactive<V>
, RBucketReactive<V>
, RCollectionReactive<V>
, RDequeReactive<V>
, RGeoReactive<V>
, RHyperLogLogReactive<V>
, RLexSortedSetReactive
, RListMultimapReactive<K,V>
, RListReactive<V>
, RLockReactive
, RMapCacheReactive<K,V>
, RMapReactive<K,V>
, RMultimapReactive<K,V>
, RPermitExpirableSemaphoreReactive
, RQueueReactive<V>
, RReadWriteLockReactive
, RScoredSortedSetReactive<V>
, RSemaphoreReactive
, RSetCacheReactive<V>
, RSetMultimapReactive<K,V>
, RSetReactive<V>
RedissonAtomicDoubleReactive
, RedissonAtomicLongReactive
, RedissonBitSetReactive
, RedissonBlockingDequeReactive
, RedissonBlockingQueueReactive
, RedissonBucketReactive
, RedissonDequeReactive
, RedissonGeoReactive
, RedissonHyperLogLogReactive
, RedissonLexSortedSetReactive
, RedissonListMultimapReactive
, RedissonListReactive
, RedissonLockReactive
, RedissonMapCacheReactive
, RedissonMapReactive
, RedissonPermitExpirableSemaphoreReactive
, RedissonQueueReactive
, RedissonReadWriteLockReactive
, RedissonScoredSortedSetReactive
, RedissonSemaphoreReactive
, RedissonSetCacheReactive
, RedissonSetMultimapReactive
, RedissonSetReactive
public interface RExpirableReactive extends RObjectReactive
Modifier and Type | Method | Description |
---|---|---|
org.reactivestreams.Publisher<Boolean> |
clearExpire() |
Clear an expire timeout or expire date for object in mode.
|
org.reactivestreams.Publisher<Boolean> |
expire(long timeToLive,
TimeUnit timeUnit) |
Set a timeout for object in mode.
|
org.reactivestreams.Publisher<Boolean> |
expireAt(long timestamp) |
Set an expire date for object in mode.
|
org.reactivestreams.Publisher<Boolean> |
expireAt(Date timestamp) |
Set an expire date for object in mode.
|
org.reactivestreams.Publisher<Long> |
remainTimeToLive() |
Get remaining time to live of object in milliseconds.
|
org.reactivestreams.Publisher<Boolean> expire(long timeToLive, TimeUnit timeUnit)
timeToLive
- - timeout before object will be deletedtimeUnit
- - timeout time unittrue
if the timeout was set and false
if notorg.reactivestreams.Publisher<Boolean> expireAt(Date timestamp)
timestamp
- - expire datetrue
if the timeout was set and false
if notorg.reactivestreams.Publisher<Boolean> expireAt(long timestamp)
timestamp
- - expire date in milliseconds (Unix timestamp)true
if the timeout was set and false
if notorg.reactivestreams.Publisher<Boolean> clearExpire()
true
if the timeout was cleared and false
if notorg.reactivestreams.Publisher<Long> remainTimeToLive()
Copyright © 2014–2018 The Redisson Project. All rights reserved.