public interface RExpirableReactive extends RObjectReactive
Modifier and Type | Method and Description |
---|---|
org.reactivestreams.Publisher<Boolean> |
clearExpire()
Clear an expire timeout or expire date for object in mode.
|
org.reactivestreams.Publisher<Boolean> |
expire(long timeToLive,
TimeUnit timeUnit)
Set a timeout for object in mode.
|
org.reactivestreams.Publisher<Boolean> |
expireAt(Date timestamp)
Set an expire date for object in mode.
|
org.reactivestreams.Publisher<Boolean> |
expireAt(long timestamp)
Set an expire date for object in mode.
|
org.reactivestreams.Publisher<Long> |
remainTimeToLive()
Get remaining time to live of object in milliseconds.
|
org.reactivestreams.Publisher<Boolean> expire(long timeToLive, TimeUnit timeUnit)
timeToLive
- - timeout before object will be deletedtimeUnit
- - timeout time unittrue
if the timeout was set and false
if notorg.reactivestreams.Publisher<Boolean> expireAt(Date timestamp)
timestamp
- - expire datetrue
if the timeout was set and false
if notorg.reactivestreams.Publisher<Boolean> expireAt(long timestamp)
timestamp
- - expire date in milliseconds (Unix timestamp)true
if the timeout was set and false
if notorg.reactivestreams.Publisher<Boolean> clearExpire()
true
if the timeout was cleared and false
if notorg.reactivestreams.Publisher<Long> remainTimeToLive()
Copyright © 2014–2018 The Redisson Project. All rights reserved.