K
- keyV
- valuepublic class RedissonMap<K,V> extends Object implements RMap<K,V>
ConcurrentMap
and Map
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
clearExpire()
Remove the existing timeout of Redisson object
|
void |
close() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
void |
delete()
Deletes the object
|
Set<Map.Entry<K,V>> |
entrySet() |
boolean |
expire(long timeToLive,
TimeUnit timeUnit) |
boolean |
expireAt(Date timestamp) |
boolean |
expireAt(long timestamp) |
V |
get(Object key) |
io.netty.util.concurrent.Future<V> |
getAsync(K key) |
String |
getName()
Returns name of object
|
boolean |
isEmpty() |
Set<K> |
keySet() |
protected <V> io.netty.util.concurrent.Promise<V> |
newPromise() |
V |
put(K key,
V value) |
void |
putAll(Map<? extends K,? extends V> map) |
io.netty.util.concurrent.Future<V> |
putAsync(K key,
V value) |
V |
putIfAbsent(K key,
V value) |
long |
remainTimeToLive()
Remaining time to live of Redisson object that has a timeout
|
V |
remove(Object key) |
boolean |
remove(Object key,
Object value) |
io.netty.util.concurrent.Future<V> |
removeAsync(K key) |
V |
replace(K key,
V value) |
boolean |
replace(K key,
V oldValue,
V newValue) |
int |
size() |
Collection<V> |
values() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clearExpire, expire, expireAt, expireAt, remainTimeToLive
public boolean containsKey(Object key)
containsKey
in interface Map<K,V>
public boolean containsValue(Object value)
containsValue
in interface Map<K,V>
public V putIfAbsent(K key, V value)
putIfAbsent
in interface ConcurrentMap<K,V>
public boolean remove(Object key, Object value)
remove
in interface ConcurrentMap<K,V>
public boolean replace(K key, V oldValue, V newValue)
replace
in interface ConcurrentMap<K,V>
public io.netty.util.concurrent.Future<V> removeAsync(K key)
removeAsync
in interface RMap<K,V>
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.