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()
Get remaining time to live of object in seconds.
|
deleteAsync, isExistsAsync, migrateAsync, moveAsync, renameAsync, renamenxAsync, touchAsync, unlinkAsync
RFuture<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–2017 The Redisson Project. All rights reserved.