RExpirableAsync
, RObject
, RObjectAsync
RAtomicDouble
, RAtomicLong
, RBinaryStream
, RBitSet
, RBlockingDeque<V>
, RBlockingQueue<V>
, RBloomFilter<T>
, RBoundedBlockingQueue<V>
, RBucket<V>
, RDelayedQueue<V>
, RDeque<V>
, RDoubleAdder
, RGeo<V>
, RHyperLogLog<V>
, RLexSortedSet
, RList<V>
, RListMultimap<K,V>
, RListMultimapCache<K,V>
, RLocalCachedMap<K,V>
, RLock
, RLongAdder
, RMap<K,V>
, RMapCache<K,V>
, RMultimap<K,V>
, RMultimapCache<K,V>
, RPermitExpirableSemaphore
, RPriorityBlockingDeque<V>
, RPriorityBlockingQueue<V>
, RQueue<V>
, RReadWriteLock
, RScoredSortedSet<V>
, RSemaphore
, RSet<V>
, RSetCache<V>
, RSetMultimap<K,V>
, RSetMultimapCache<K,V>
, RStream<K,V>
RedissonAtomicDouble
, RedissonAtomicLong
, RedissonBaseAdder
, RedissonBinaryStream
, RedissonBitSet
, RedissonBlockingDeque
, RedissonBlockingQueue
, RedissonBloomFilter
, RedissonBoundedBlockingQueue
, RedissonBucket
, RedissonDelayedQueue
, RedissonDeque
, RedissonDoubleAdder
, RedissonFairLock
, RedissonGeo
, RedissonHyperLogLog
, RedissonLexSortedSet
, RedissonList
, RedissonListMultimap
, RedissonListMultimapCache
, RedissonListMultimapValues
, RedissonLocalCachedMap
, RedissonLock
, RedissonLongAdder
, RedissonMap
, RedissonMapCache
, RedissonMultimap
, RedissonPermitExpirableSemaphore
, RedissonPriorityBlockingDeque
, RedissonPriorityBlockingQueue
, RedissonPriorityDeque
, RedissonPriorityQueue
, RedissonQueue
, RedissonQueueSemaphore
, RedissonReadLock
, RedissonReadWriteLock
, RedissonScoredSortedSet
, RedissonSemaphore
, RedissonSet
, RedissonSetCache
, RedissonSetMultimap
, RedissonSetMultimapCache
, RedissonSetMultimapValues
, RedissonStream
, RedissonSubList
, RedissonTransactionalBucket
, RedissonTransactionalLocalCachedMap
, RedissonTransactionalLock
, RedissonTransactionalMap
, RedissonTransactionalMapCache
, RedissonTransactionalSet
, RedissonTransactionalSetCache
, RedissonWriteLock
public interface RExpirable extends RObject, RExpirableAsync
Modifier and Type | Method | Description |
---|---|---|
boolean |
clearExpire() |
Clear an expire timeout or expire date for object.
|
boolean |
expire(long timeToLive,
TimeUnit timeUnit) |
Set a timeout for object.
|
boolean |
expireAt(long timestamp) |
Set an expire date for object.
|
boolean |
expireAt(Date timestamp) |
Set an expire date for object.
|
long |
remainTimeToLive() |
Remaining time to live of Redisson object that has a timeout
|
clearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsync
copy, delete, dump, getCodec, getName, isExists, migrate, move, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, touch, unlink
copyAsync, deleteAsync, dumpAsync, isExistsAsync, migrateAsync, moveAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, touchAsync, unlinkAsync
boolean expire(long timeToLive, TimeUnit timeUnit)
timeToLive
- - timeout before object will be deletedtimeUnit
- - timeout time unittrue
if the timeout was set and false
if notboolean expireAt(long timestamp)
timestamp
- - expire date in milliseconds (Unix timestamp)true
if the timeout was set and false
if notboolean expireAt(Date timestamp)
timestamp
- - expire datetrue
if the timeout was set and false
if notboolean clearExpire()
true
if timeout was removed
false
if object does not exist or does not have an associated timeoutlong remainTimeToLive()
Copyright © 2014–2018 The Redisson Project. All rights reserved.