K - key typeV - value typepublic interface RMultimapReactive<K,V> extends RExpirableReactive
| Modifier and Type | Method and Description |
|---|---|
org.reactivestreams.Publisher<Boolean> |
containsEntry(Object key,
Object value)
Returns
true if this multimap contains at least one key-value pair
with the key key and the value value. |
org.reactivestreams.Publisher<Boolean> |
containsKey(Object key)
Returns
true if this multimap contains at least one key-value pair
with the key key. |
org.reactivestreams.Publisher<Boolean> |
containsValue(Object value)
Returns
true if this multimap contains at least one key-value pair
with the value value. |
org.reactivestreams.Publisher<Long> |
fastRemove(K... keys)
Removes
keys from map by one operation
Works faster than RMultimap.remove but not returning
the value associated with key |
org.reactivestreams.Publisher<Integer> |
keySize()
Returns the number of key-value pairs in this multimap.
|
org.reactivestreams.Publisher<Boolean> |
put(K key,
V value)
Stores a key-value pair in this multimap.
|
org.reactivestreams.Publisher<Boolean> |
putAll(K key,
Iterable<? extends V> values)
Stores a key-value pair in this multimap for each of
values, all
using the same key, key. |
org.reactivestreams.Publisher<Set<K>> |
readAllKeySet()
Read all keys at once
|
org.reactivestreams.Publisher<Boolean> |
remove(Object key,
Object value)
Removes a single key-value pair with the key
key and the value
value from this multimap, if such exists. |
org.reactivestreams.Publisher<Integer> |
size()
Returns the number of key-value pairs in this multimap.
|
clearExpire, expire, expireAt, expireAt, remainTimeToLiveorg.reactivestreams.Publisher<Integer> size()
org.reactivestreams.Publisher<Boolean> containsKey(Object key)
true if this multimap contains at least one key-value pair
with the key key.key - - map keytrue if contains a keyorg.reactivestreams.Publisher<Boolean> containsValue(Object value)
true if this multimap contains at least one key-value pair
with the value value.value - - map valuetrue if contains a valueorg.reactivestreams.Publisher<Boolean> containsEntry(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 entryorg.reactivestreams.Publisher<Boolean> put(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 duplicatesorg.reactivestreams.Publisher<Boolean> remove(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 changedorg.reactivestreams.Publisher<Boolean> putAll(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 changedorg.reactivestreams.Publisher<Integer> keySize()
org.reactivestreams.Publisher<Long> fastRemove(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.