public interface RExpirable extends RObject, RExpirableAsync
Modifier and Type | Method and Description |
---|---|
boolean |
clearExpire()
Remove the existing timeout of Redisson object
|
boolean |
expire(long timeToLive,
TimeUnit timeUnit) |
boolean |
expireAt(Date timestamp) |
boolean |
expireAt(long timestamp) |
long |
remainTimeToLive()
Remaining time to live of Redisson object that has a timeout
|
delete, getName, migrate, move, rename, renamenx
clearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsync
deleteAsync, migrateAsync, moveAsync, renameAsync, renamenxAsync
boolean expire(long timeToLive, TimeUnit timeUnit)
boolean expireAt(long timestamp)
boolean expireAt(Date timestamp)
boolean clearExpire()
true
if timeout was removed
false
if object does not exist or does not have an associated timeoutlong remainTimeToLive()
Copyright © 2014–2015. All rights reserved.