public class RedissonBucket<V> extends Object implements RBucket<V>
Modifier and Type | Method and Description |
---|---|
boolean |
clearExpire()
Remove the existing timeout of Redisson object
|
void |
close() |
void |
delete()
Deletes the object
|
boolean |
expire(long timeToLive,
TimeUnit timeUnit) |
boolean |
expireAt(Date timestamp) |
boolean |
expireAt(long timestamp) |
V |
get() |
io.netty.util.concurrent.Future<V> |
getAsync() |
String |
getName()
Returns name of object
|
protected <V> io.netty.util.concurrent.Promise<V> |
newPromise() |
long |
remainTimeToLive()
Remaining time to live of Redisson object that has a timeout
|
void |
set(V value) |
void |
set(V value,
long timeToLive,
TimeUnit timeUnit) |
io.netty.util.concurrent.Future<Void> |
setAsync(V value) |
io.netty.util.concurrent.Future<Void> |
setAsync(V value,
long timeToLive,
TimeUnit timeUnit) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clearExpire, expire, expireAt, expireAt, remainTimeToLive
public io.netty.util.concurrent.Future<V> getAsync()
public io.netty.util.concurrent.Future<Void> setAsync(V value, long timeToLive, TimeUnit timeUnit)
public boolean expire(long timeToLive, TimeUnit timeUnit)
expire
in interface RExpirable
public boolean expireAt(long timestamp)
expireAt
in interface RExpirable
public boolean expireAt(Date timestamp)
expireAt
in interface RExpirable
public boolean clearExpire()
RExpirable
clearExpire
in interface RExpirable
true
if timeout was removed
false
if object does not exist or does not have an associated timeoutpublic long remainTimeToLive()
RExpirable
remainTimeToLive
in interface RExpirable
protected <V> io.netty.util.concurrent.Promise<V> newPromise()
public void delete()
RObject
public void close()
Copyright © 2014. All rights reserved.