public interface RExpirable extends RObject, RExpirableAsync
| Modifier and Type | Method and Description |
|---|---|
boolean |
clearExpire()
Clear an expire timeout or expire date for object.
|
boolean |
expire(long timeToLive,
TimeUnit timeUnit)
Set a timeout for object.
|
boolean |
expireAt(Date timestamp)
Set an expire date for object.
|
boolean |
expireAt(long timestamp)
Set an expire date for object.
|
long |
remainTimeToLive()
Remaining time to live of Redisson object that has a timeout
|
copy, delete, getCodec, getName, isExists, migrate, move, rename, renamenx, touch, unlinkclearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsynccopyAsync, deleteAsync, isExistsAsync, migrateAsync, moveAsync, renameAsync, renamenxAsync, touchAsync, unlinkAsyncboolean expire(long timeToLive,
TimeUnit timeUnit)
timeToLive - - timeout before object will be deletedtimeUnit - - timeout time unittrue if the timeout was set and false if notboolean expireAt(long timestamp)
timestamp - - expire date in milliseconds (Unix timestamp)true if the timeout was set and false if notboolean expireAt(Date timestamp)
timestamp - - expire datetrue if the timeout was set and false if notboolean clearExpire()
true if timeout was removed
false if object does not exist or does not have an associated timeoutlong remainTimeToLive()
Copyright © 2014–2018 The Redisson Project. All rights reserved.