K
- 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 . |
Iterator<Map.Entry<K,V>> |
entryIterator()
Deprecated.
|
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> |
filterEntries(Predicate<Map.Entry<K,V>> predicate)
Deprecated.
|
Map<K,V> |
filterKeys(Predicate<K> predicate)
Deprecated.
|
Map<K,V> |
filterValues(Predicate<V> predicate)
Deprecated.
|
Map<K,V> |
getAll(Set<K> keys)
Gets a map slice contains the mappings with defined
keys
by one operation. |
Iterator<K> |
keyIterator()
Deprecated.
|
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
|
Iterator<V> |
valueIterator()
Deprecated.
|
putIfAbsent, remove, replace, replace
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
clearExpire, expire, expireAt, expireAt, remainTimeToLive
delete, getName, isExists, migrate, move, rename, renamenx
addAndGetAsync, containsKeyAsync, containsValueAsync, fastPutAsync, fastPutIfAbsentAsync, fastRemoveAsync, getAllAsync, getAsync, putAllAsync, putAsync, putIfAbsentAsync, readAllEntrySetAsync, readAllKeySetAsync, readAllValuesAsync, removeAsync, removeAsync, replaceAsync, replaceAsync, sizeAsync
clearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsync
deleteAsync, isExistsAsync, migrateAsync, moveAsync, renameAsync, renamenxAsync
V addAndGet(K key, Number delta)
delta
to the current value
by mapped key
.
Works only for numeric values!key
- delta
- 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 keys@Deprecated Map<K,V> filterEntries(Predicate<Map.Entry<K,V>> predicate)
Map.Entry<K, V> entries
satisfy a predicate. This operation traverses all map entries with small memory footprint.
The returned map is NOT backed by the original map.predicate
- @Deprecated Map<K,V> filterValues(Predicate<V> predicate)
values
satisfy a predicate. Traverses all map entries with small memory footprint.
The returned map is NOT backed by the original map.predicate
- @Deprecated Map<K,V> filterKeys(Predicate<K> predicate)
keys
satisfy a predicate. Traverses all map entries with small memory footprint.
The returned map is NOT backed by the original map.predicate
- long fastRemove(K... keys)
keys
from map by one operation
Works faster than RMap.remove
but not returning
the value associated with key
keys
- boolean 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
- value
- true
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()
@Deprecated Iterator<Map.Entry<K,V>> entryIterator()
#entrySet().iterator()
@Deprecated Iterator<K> keyIterator()
#keySet().iterator()
@Deprecated Iterator<V> valueIterator()
#values().iterator()
Copyright © 2014–2016. All rights reserved.