K
- key typeV
- value typepublic interface RMultimapReactive<K,V> extends RExpirableReactive
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<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 . |
reactor.core.publisher.Mono<Boolean> |
containsKey(Object key)
Returns
true if this multimap contains at least one key-value pair
with the key key . |
reactor.core.publisher.Mono<Boolean> |
containsValue(Object value)
Returns
true if this multimap contains at least one key-value pair
with the value value . |
reactor.core.publisher.Mono<Long> |
fastRemove(K... keys)
Removes
keys from map by one operation
Works faster than RMultimap.remove but not returning
the value associated with key |
reactor.core.publisher.Mono<Integer> |
keySize()
Returns the number of key-value pairs in this multimap.
|
reactor.core.publisher.Mono<Boolean> |
put(K key,
V value)
Stores a key-value pair in this multimap.
|
reactor.core.publisher.Mono<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 . |
reactor.core.publisher.Mono<Set<K>> |
readAllKeySet()
Read all keys at once
|
reactor.core.publisher.Mono<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. |
reactor.core.publisher.Mono<Integer> |
size()
Returns the number of key-value pairs in this multimap.
|
clearExpire, expire, expireAt, expireAt, remainTimeToLive
reactor.core.publisher.Mono<Integer> size()
reactor.core.publisher.Mono<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 keyreactor.core.publisher.Mono<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 valuereactor.core.publisher.Mono<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 entryreactor.core.publisher.Mono<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 duplicatesreactor.core.publisher.Mono<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 changedreactor.core.publisher.Mono<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 changedreactor.core.publisher.Mono<Integer> keySize()
reactor.core.publisher.Mono<Long> fastRemove(K... keys)
keys
from map by one operation
Works faster than RMultimap.remove
but not returning
the value associated with key
keys
- - map keysCopyright © 2014–2019 The Redisson Project. All rights reserved.