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(long timeToLive,
TimeUnit timeUnit)
Set a timeout for object in async mode.
|
RFuture<Boolean> |
expireAtAsync(Date timestamp)
Set an expire date for object in async mode.
|
RFuture<Boolean> |
expireAtAsync(long timestamp)
Set an expire date for object in async mode.
|
RFuture<Long> |
remainTimeToLiveAsync()
Remaining time to live of Redisson object that has a timeout
|
copyAsync, deleteAsync, isExistsAsync, migrateAsync, moveAsync, renameAsync, renamenxAsync, 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 notRFuture<Boolean> expireAtAsync(Date timestamp)
timestamp - - expire datetrue if the timeout was set and false if notRFuture<Boolean> expireAtAsync(long timestamp)
timestamp - - expire date in seconds (Unix timestamp)true if the timeout was set and false if notRFuture<Boolean> clearExpireAsync()
true if the timeout was cleared and false if notCopyright © 2014–2018 The Redisson Project. All rights reserved.