K
- map keyV
- valuepublic interface RMap<K,V> extends ConcurrentMap<K,V>, RExpirable, RMapAsync<K,V>
ConcurrentMap
and Map
This map doesn't allow to store null
as key or value.Modifier and Type | Method and Description |
---|---|
V |
addAndGet(K key,
Number delta)
Atomically adds the given
delta to the current value
by mapped key . |
Set<Map.Entry<K,V>> |
entrySet()
Returns values collections.
|
boolean |
fastPut(K key,
V value)
Associates the specified
value with the specified key . |
boolean |
fastPutIfAbsent(K key,
V value) |
long |
fastRemove(K... keys)
Removes
keys from map by one operation
Works faster than RMap.remove but not returning
the value associated with key |
Map<K,V> |
getAll(Set<K> keys)
Gets a map slice contains the mappings with defined
keys
by one operation. |
RLock |
getLock(K key)
Returns
RLock instance associated with key |
RReadWriteLock |
getReadWriteLock(K key)
Returns
RReadWriteLock instance associated with key |
Set<K> |
keySet()
Returns key set.
|
Set<Map.Entry<K,V>> |
readAllEntrySet()
Read all map entries at once
|
Set<K> |
readAllKeySet()
Read all keys at once
|
Collection<V> |
readAllValues()
Read all values at once
|
Collection<V> |
values()
Returns values collections.
|
int |
valueSize(K key)
Returns size of value mapped by key in bytes
|
putIfAbsent, remove, replace, replace
clear, containsKey, containsValue, equals, get, hashCode, isEmpty, put, putAll, remove, size
clearExpire, expire, expireAt, expireAt, remainTimeToLive
delete, getCodec, getName, isExists, migrate, move, rename, renamenx, touch
addAndGetAsync, containsKeyAsync, containsValueAsync, fastPutAsync, fastPutIfAbsentAsync, fastRemoveAsync, getAllAsync, getAsync, putAllAsync, putAsync, putIfAbsentAsync, readAllEntrySetAsync, readAllKeySetAsync, readAllValuesAsync, removeAsync, removeAsync, replaceAsync, replaceAsync, sizeAsync, valueSizeAsync
clearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsync
deleteAsync, isExistsAsync, migrateAsync, moveAsync, renameAsync, renamenxAsync, touchAsync
RReadWriteLock getReadWriteLock(K key)
RReadWriteLock
instance associated with keykey
- - map keyRLock getLock(K key)
RLock
instance associated with keykey
- - map keyint valueSize(K key)
key
- - map keyV addAndGet(K key, Number delta)
delta
to the current value
by mapped key
.
Works only for numeric values!key
- - map keydelta
- the value to addMap<K,V> getAll(Set<K> keys)
keys
by one operation. This operation NOT traverses all map entries
like any other filter*
method, so works faster.
The returned map is NOT backed by the original map.keys
- - map keyslong fastRemove(K... keys)
keys
from map by one operation
Works faster than RMap.remove
but not returning
the value associated with key
keys
- - map keysboolean fastPut(K key, V value)
value
with the specified key
.
Works faster than RMap.put
but not returning
the previous value associated with key
key
- - map keyvalue
- - map valuetrue
if key is a new key in the hash and value was set.
false
if key already exists in the hash and the value was updated.Collection<V> readAllValues()
Set<K> keySet()
readAllKeySet()
does.Collection<V> values()
readAllValues()
does.Copyright © 2014–2017 The Redisson Project. All rights reserved.