K - keyV - valuepublic interface RMultimapAsync<K,V> extends RExpirableAsync
| Modifier and Type | Method and Description |
|---|---|
RFuture<Boolean> |
containsEntryAsync(Object key,
Object value)
Returns
true if this multimap contains at least one key-value pair
with the key key and the value value. |
RFuture<Boolean> |
containsKeyAsync(Object key)
Returns
true if this multimap contains at least one key-value pair
with the key key. |
RFuture<Boolean> |
containsValueAsync(Object value)
Returns
true if this multimap contains at least one key-value pair
with the value value. |
RFuture<Long> |
fastRemoveAsync(K... keys)
Removes
keys from map by one operation
Works faster than RMultimap.remove but not returning
the value associated with key |
RFuture<Collection<V>> |
getAllAsync(K key) |
RFuture<Integer> |
keySizeAsync()
Returns the number of key-value pairs in this multimap.
|
RFuture<Boolean> |
putAllAsync(K key,
Iterable<? extends V> values)
Stores a key-value pair in this multimap for each of
values, all
using the same key, key. |
RFuture<Boolean> |
putAsync(K key,
V value)
Stores a key-value pair in this multimap.
|
RFuture<Set<K>> |
readAllKeySetAsync()
Read all keys at once
|
RFuture<Collection<V>> |
removeAllAsync(Object key)
Removes all values associated with the key
key. |
RFuture<Boolean> |
removeAsync(Object key,
Object value)
Removes a single key-value pair with the key
key and the value
value from this multimap, if such exists. |
RFuture<Collection<V>> |
replaceValuesAsync(K key,
Iterable<? extends V> values)
Stores a collection of values with the same key, replacing any existing
values for that key.
|
RFuture<Integer> |
sizeAsync()
Returns the number of key-value pairs in this multimap.
|
clearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsynccopyAsync, deleteAsync, isExistsAsync, migrateAsync, moveAsync, renameAsync, renamenxAsync, touchAsync, unlinkAsyncRFuture<Integer> sizeAsync()
RFuture<Boolean> containsKeyAsync(Object key)
true if this multimap contains at least one key-value pair
with the key key.key - - map keytrue if contains a keyRFuture<Boolean> containsValueAsync(Object value)
true if this multimap contains at least one key-value pair
with the value value.value - - map valuetrue if contains a valueRFuture<Boolean> containsEntryAsync(Object key, Object value)
true if this multimap contains at least one key-value pair
with the key key and the value value.key - - map keyvalue - - map valuetrue if contains an entryRFuture<Boolean> putAsync(K key, V value)
Some multimap implementations allow duplicate key-value pairs, in which
case put always adds a new key-value pair and increases the
multimap size by 1. Other implementations prohibit duplicates, and storing
a key-value pair that's already in the multimap has no effect.
key - - map keyvalue - - map valuetrue if the method increased the size of the multimap, or
false if the multimap already contained the key-value pair and
doesn't allow duplicatesRFuture<Boolean> removeAsync(Object key, Object value)
key and the value
value from this multimap, if such exists. If multiple key-value
pairs in the multimap fit this description, which one is removed is
unspecified.key - - map keyvalue - - map valuetrue if the multimap changedRFuture<Boolean> putAllAsync(K key, Iterable<? extends V> values)
values, all
using the same key, key. Equivalent to (but expected to be more
efficient than):
for (V value : values) {
put(key, value);
}
In particular, this is a no-op if values is empty.
key - - map keyvalues - - map valuestrue if the multimap changedRFuture<Collection<V>> replaceValuesAsync(K key, Iterable<? extends V> values)
If values is empty, this is equivalent to
removeAllAsync(Object).
key - - map keyvalues - - map valuesRFuture<Collection<V>> removeAllAsync(Object key)
key.
Once this method returns, key will not be mapped to any values.
key - - map keyRFuture<Collection<V>> getAllAsync(K key)
RFuture<Integer> keySizeAsync()
RFuture<Long> fastRemoveAsync(K... keys)
keys from map by one operation
Works faster than RMultimap.remove but not returning
the value associated with keykeys - - map keysCopyright © 2014–2018 The Redisson Project. All rights reserved.