public interface RExpirableReactive extends RObjectReactive
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<Boolean> |
clearExpire()
Clear an expire timeout or expire date for object in mode.
|
reactor.core.publisher.Mono<Boolean> |
expire(long timeToLive,
TimeUnit timeUnit)
Set a timeout for object in mode.
|
reactor.core.publisher.Mono<Boolean> |
expireAt(Date timestamp)
Set an expire date for object in mode.
|
reactor.core.publisher.Mono<Boolean> |
expireAt(long timestamp)
Set an expire date for object in mode.
|
reactor.core.publisher.Mono<Long> |
remainTimeToLive()
Get remaining time to live of object in milliseconds.
|
addListener, copy, delete, dump, getCodec, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlink
reactor.core.publisher.Mono<Boolean> expire(long timeToLive, TimeUnit timeUnit)
timeToLive
- - timeout before object will be deletedtimeUnit
- - timeout time unittrue
if the timeout was set and false
if notreactor.core.publisher.Mono<Boolean> expireAt(Date timestamp)
timestamp
- - expire datetrue
if the timeout was set and false
if notreactor.core.publisher.Mono<Boolean> expireAt(long timestamp)
timestamp
- - expire date in milliseconds (Unix timestamp)true
if the timeout was set and false
if notreactor.core.publisher.Mono<Boolean> clearExpire()
true
if the timeout was cleared and false
if notreactor.core.publisher.Mono<Long> remainTimeToLive()
Copyright © 2014–2020 Redisson. All rights reserved.