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
|
addListenerAsync, copyAsync, deleteAsync, dumpAsync, isExistsAsync, migrateAsync, moveAsync, removeListenerAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, 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 milliseconds (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–2020 Redisson. All rights reserved.