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(Instant instant)
Set an expire date for object.
|
boolean |
expire(long timeToLive,
TimeUnit timeUnit)
Set a timeout for object.
|
boolean |
expireAt(Date timestamp)
Deprecated.
|
boolean |
expireAt(long timestamp)
Deprecated.
|
long |
remainTimeToLive()
Remaining time to live of Redisson object that has a timeout
|
addListener, copy, delete, dump, getCodec, getIdleTime, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlinkclearExpireAsync, expireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsyncaddListenerAsync, copyAsync, deleteAsync, dumpAsync, getIdleTimeAsync, isExistsAsync, migrateAsync, moveAsync, removeListenerAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, 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 not@Deprecated boolean expireAt(long timestamp)
expire(Instant) insteadtimestamp - - expire date in milliseconds (Unix timestamp)true if the timeout was set and false if not@Deprecated boolean expireAt(Date timestamp)
expire(Instant) insteadtimestamp - - expire datetrue if the timeout was set and false if notboolean expire(Instant instant)
instant - - 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–2021 Redisson. All rights reserved.