K
- type of the multimap keyV
- type of the multimap valuepublic interface TransactionalMultiMap<K,V> extends BaseMultiMap<K,V>, TransactionalObject
BaseMultiMap
.
Supports split brain protection SplitBrainProtectionConfig
since 3.10 in
cluster versions 3.10 and higher.
BaseMultiMap
,
MultiMap
Modifier and Type | Method and Description |
---|---|
Collection<V> |
get(K key)
Returns the collection of values associated with the key.
|
boolean |
put(K key,
V value)
Stores a key-value pair in the multimap.
|
Collection<V> |
remove(Object key)
Removes all the entries associated with the given key.
|
boolean |
remove(Object key,
Object value)
Removes the given key value pair from the multimap.
|
int |
size()
Returns the number of key-value pairs in the multimap.
|
int |
valueCount(K key)
Returns the number of values matching the given key in the multimap.
|
destroy, getDestroyContextForTenant, getName, getPartitionKey, getServiceName
boolean put(K key, V value)
put
in interface BaseMultiMap<K,V>
key
- the key to be storedvalue
- the value to be storedCollection<V> get(K key)
get
in interface BaseMultiMap<K,V>
key
- the key whose associated values are returnedboolean remove(Object key, Object value)
remove
in interface BaseMultiMap<K,V>
key
- the key of the entry to removevalue
- the value of the entry to removeCollection<V> remove(Object key)
remove
in interface BaseMultiMap<K,V>
key
- the key of the entries to removeint valueCount(K key)
valueCount
in interface BaseMultiMap<K,V>
key
- the key whose number of values is to be returnedint size()
size
in interface BaseMultiMap<K,V>
Copyright © 2024 Hazelcast, Inc.. All rights reserved.