public interface RExpirableRx extends RObjectRx
Modifier and Type | Method and Description |
---|---|
io.reactivex.rxjava3.core.Single<Boolean> |
clearExpire()
Clear an expire timeout or expire date for object in mode.
|
io.reactivex.rxjava3.core.Single<Boolean> |
expire(long timeToLive,
TimeUnit timeUnit)
Set a timeout for object in mode.
|
io.reactivex.rxjava3.core.Single<Boolean> |
expireAt(Date timestamp)
Deprecated.
|
io.reactivex.rxjava3.core.Single<Boolean> |
expireAt(Instant instant)
Set an expire date for object.
|
io.reactivex.rxjava3.core.Single<Boolean> |
expireAt(long timestamp)
Deprecated.
|
io.reactivex.rxjava3.core.Single<Long> |
remainTimeToLive()
Get remaining time to live of object in milliseconds.
|
addListener, copy, delete, dump, getCodec, getIdleTime, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlink
io.reactivex.rxjava3.core.Single<Boolean> 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 io.reactivex.rxjava3.core.Single<Boolean> expireAt(Date timestamp)
expireAt(Instant)
insteadtimestamp
- - expire datetrue
if the timeout was set and false
if not@Deprecated io.reactivex.rxjava3.core.Single<Boolean> expireAt(long timestamp)
expireAt(Instant)
insteadtimestamp
- - expire date in milliseconds (Unix timestamp)true
if the timeout was set and false
if notio.reactivex.rxjava3.core.Single<Boolean> expireAt(Instant instant)
instant
- - expire datetrue
if the timeout was set and false
if notio.reactivex.rxjava3.core.Single<Boolean> clearExpire()
true
if the timeout was cleared and false
if notio.reactivex.rxjava3.core.Single<Long> remainTimeToLive()
Copyright © 2014–2021 Redisson. All rights reserved.