public class RedissonBucket<V> extends Object implements RBucket<V>
| Modifier | Constructor and Description |
|---|---|
protected |
RedissonBucket(ConnectionManager connectionManager,
String name) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
clearExpire()
Remove the existing timeout of Redisson object
|
void |
delete()
Deletes the object
|
boolean |
exists() |
io.netty.util.concurrent.Future<Boolean> |
existsAsync() |
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, waitclearExpire, expire, expireAt, expireAt, remainTimeToLiveprotected RedissonBucket(ConnectionManager connectionManager, String name)
public io.netty.util.concurrent.Future<V> getAsync()
public io.netty.util.concurrent.Future<Void> setAsync(V value, long timeToLive, TimeUnit timeUnit)
public io.netty.util.concurrent.Future<Boolean> existsAsync()
existsAsync in interface RBucket<V>public boolean expire(long timeToLive,
TimeUnit timeUnit)
expire in interface RExpirablepublic boolean expireAt(long timestamp)
expireAt in interface RExpirablepublic boolean expireAt(Date timestamp)
expireAt in interface RExpirablepublic boolean clearExpire()
RExpirableclearExpire in interface RExpirabletrue if timeout was removed
false if object does not exist or does not have an associated timeoutpublic long remainTimeToLive()
RExpirableremainTimeToLive in interface RExpirableprotected <V> io.netty.util.concurrent.Promise<V> newPromise()
Copyright © 2014–2015. All rights reserved.