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)
Deprecated.
|
reactor.core.publisher.Mono<Boolean> |
expireAt(Instant instant)
Set an expire date for object.
|
reactor.core.publisher.Mono<Boolean> |
expireAt(long timestamp)
Deprecated.
|
reactor.core.publisher.Mono<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
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 not@Deprecated reactor.core.publisher.Mono<Boolean> expireAt(Date timestamp)
expireAt(Instant)
insteadtimestamp
- - expire datetrue
if the timeout was set and false
if not@Deprecated reactor.core.publisher.Mono<Boolean> expireAt(long timestamp)
expireAt(Instant)
insteadtimestamp
- - expire date in milliseconds (Unix timestamp)true
if the timeout was set and false
if notreactor.core.publisher.Mono<Boolean> expireAt(Instant instant)
instant
- - expire datetrue
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–2021 Redisson. All rights reserved.