public interface RExpirableAsync extends RObjectAsync
| Modifier and Type | Method and Description |
|---|---|
RFuture<Boolean> |
clearExpireAsync()
Clear an expire timeout or expire date for object in async mode.
|
RFuture<Boolean> |
expireAsync(Instant instant)
Set an expire date for object.
|
RFuture<Boolean> |
expireAsync(long timeToLive,
TimeUnit timeUnit)
Set a timeout for object in async mode.
|
RFuture<Boolean> |
expireAtAsync(Date timestamp)
Deprecated.
|
RFuture<Boolean> |
expireAtAsync(long timestamp)
Deprecated.
|
RFuture<Long> |
remainTimeToLiveAsync()
Remaining time to live of Redisson object that has a timeout
|
addListenerAsync, copyAsync, deleteAsync, dumpAsync, getIdleTimeAsync, isExistsAsync, migrateAsync, moveAsync, removeListenerAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, touchAsync, unlinkAsyncRFuture<Boolean> expireAsync(long timeToLive, TimeUnit timeUnit)
timeToLive - - timeout before object will be deletedtimeUnit - - timeout time unittrue if the timeout was set and false if not@Deprecated RFuture<Boolean> expireAtAsync(Date timestamp)
expireAsync(Instant) insteadtimestamp - - expire datetrue if the timeout was set and false if not@Deprecated RFuture<Boolean> expireAtAsync(long timestamp)
expireAsync(Instant) insteadtimestamp - - expire date in milliseconds (Unix timestamp)true if the timeout was set and false if notRFuture<Boolean> expireAsync(Instant instant)
instant - - expire datetrue if the timeout was set and false if notRFuture<Boolean> clearExpireAsync()
true if the timeout was cleared and false if notCopyright © 2014–2021 Redisson. All rights reserved.