Package org.redisson.api
Interface RExpirableAsync
-
- All Superinterfaces:
RObjectAsync
- All Known Subinterfaces:
RAtomicDouble,RAtomicDoubleAsync,RAtomicLong,RAtomicLongAsync,RBinaryStream,RBitSet,RBitSetAsync,RBlockingDeque<V>,RBlockingDequeAsync<V>,RBlockingQueue<V>,RBlockingQueueAsync<V>,RBloomFilter<T>,RBoundedBlockingQueue<V>,RBoundedBlockingQueueAsync<V>,RBucket<V>,RBucketAsync<V>,RCollectionAsync<V>,RDelayedQueue<V>,RDeque<V>,RDequeAsync<V>,RDoubleAdder,RExpirable,RGeo<V>,RGeoAsync<V>,RHyperLogLog<V>,RHyperLogLogAsync<V>,RIdGenerator,RIdGeneratorAsync,RLexSortedSet,RLexSortedSetAsync,RList<V>,RListAsync<V>,RListMultimap<K,V>,RListMultimapCache<K,V>,RLiveObject,RLocalCachedMap<K,V>,RLongAdder,RMap<K,V>,RMapAsync<K,V>,RMapCache<K,V>,RMapCacheAsync<K,V>,RMultimap<K,V>,RMultimapAsync<K,V>,RMultimapCache<K,V>,RMultimapCacheAsync<K,V>,RPermitExpirableSemaphore,RPermitExpirableSemaphoreAsync,RPriorityBlockingDeque<V>,RPriorityBlockingQueue<V>,RPriorityDeque<V>,RPriorityQueue<V>,RQueue<V>,RQueueAsync<V>,RRateLimiter,RRateLimiterAsync,RReliableTopic,RReliableTopicAsync,RRingBuffer<V>,RRingBufferAsync<V>,RScoredSortedSet<V>,RScoredSortedSetAsync<V>,RSemaphore,RSemaphoreAsync,RSet<V>,RSetAsync<V>,RSetCache<V>,RSetCacheAsync<V>,RSetMultimap<K,V>,RSetMultimapCache<K,V>,RStream<K,V>,RStreamAsync<K,V>,RTimeSeries<V>,RTimeSeriesAsync<V>,RTransferQueue<V>,RTransferQueueAsync<V>
- All Known Implementing Classes:
RedissonAtomicDouble,RedissonAtomicLong,RedissonBaseAdder,RedissonBaseLock,RedissonBinaryStream,RedissonBitSet,RedissonBlockingDeque,RedissonBlockingQueue,RedissonBloomFilter,RedissonBoundedBlockingQueue,RedissonBucket,RedissonDelayedQueue,RedissonDeque,RedissonDoubleAdder,RedissonFairLock,RedissonGeo,RedissonHyperLogLog,RedissonIdGenerator,RedissonLexSortedSet,RedissonList,RedissonListMultimap,RedissonListMultimapCache,RedissonListMultimapValues,RedissonLocalCachedMap,RedissonLock,RedissonLongAdder,RedissonMap,RedissonMapCache,RedissonMultimap,RedissonPermitExpirableSemaphore,RedissonPriorityBlockingDeque,RedissonPriorityBlockingQueue,RedissonPriorityDeque,RedissonPriorityQueue,RedissonQueue,RedissonQueueSemaphore,RedissonRateLimiter,RedissonReadLock,RedissonReadWriteLock,RedissonReliableTopic,RedissonRingBuffer,RedissonScoredSortedSet,RedissonSemaphore,RedissonSet,RedissonSetCache,RedissonSetMultimap,RedissonSetMultimapCache,RedissonSetMultimapValues,RedissonSpinLock,RedissonStream,RedissonSubList,RedissonTimeSeries,RedissonTransactionalBucket,RedissonTransactionalLocalCachedMap,RedissonTransactionalLock,RedissonTransactionalMap,RedissonTransactionalMapCache,RedissonTransactionalSet,RedissonTransactionalSetCache,RedissonTransferQueue,RedissonWriteLock
public interface RExpirableAsync extends RObjectAsync
Base async interface for all Redisson objects which supports expiration (TTL)- Author:
- Nikita Koksharov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description RFuture<Boolean>clearExpireAsync()Clear an expire timeout or expire date for object in async mode.RFuture<Boolean>expireAsync(long timeToLive, TimeUnit timeUnit)Set a timeout for object in async mode.RFuture<Boolean>expireAsync(Instant instant)Set an expire date for object.RFuture<Boolean>expireAtAsync(long timestamp)Deprecated.RFuture<Boolean>expireAtAsync(Date timestamp)Deprecated.RFuture<Long>remainTimeToLiveAsync()Remaining time to live of Redisson object that has a timeout-
Methods inherited from interface org.redisson.api.RObjectAsync
addListenerAsync, copyAsync, deleteAsync, dumpAsync, getIdleTimeAsync, isExistsAsync, migrateAsync, moveAsync, removeListenerAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, touchAsync, unlinkAsync
-
-
-
-
Method Detail
-
expireAsync
RFuture<Boolean> expireAsync(long timeToLive, TimeUnit timeUnit)
Set a timeout for object in async mode. After the timeout has expired, the key will automatically be deleted.- Parameters:
timeToLive- - timeout before object will be deletedtimeUnit- - timeout time unit- Returns:
trueif the timeout was set andfalseif not
-
expireAtAsync
@Deprecated RFuture<Boolean> expireAtAsync(Date timestamp)
Deprecated.UseexpireAsync(Instant)instead- Parameters:
timestamp- - expire date- Returns:
trueif the timeout was set andfalseif not
-
expireAtAsync
@Deprecated RFuture<Boolean> expireAtAsync(long timestamp)
Deprecated.UseexpireAsync(Instant)instead- Parameters:
timestamp- - expire date in milliseconds (Unix timestamp)- Returns:
trueif the timeout was set andfalseif not
-
expireAsync
RFuture<Boolean> expireAsync(Instant instant)
Set an expire date for object. When expire date comes the key will automatically be deleted.- Parameters:
instant- - expire date- Returns:
trueif the timeout was set andfalseif not
-
clearExpireAsync
RFuture<Boolean> clearExpireAsync()
Clear an expire timeout or expire date for object in async mode. Object will not be deleted.- Returns:
trueif the timeout was cleared andfalseif not
-
-