Package com.hazelcast.transaction
Interface TransactionalMultiMap<K,V> 
- Type Parameters:
- K- type of the multimap key
- V- type of the multimap value
- All Superinterfaces:
- BaseMultiMap<K,,- V> - DistributedObject,- TransactionalObject
Transactional implementation of 
BaseMultiMap.
 
 Supports split brain protection SplitBrainProtectionConfig since 3.10 in
 cluster versions 3.10 and higher.
- See Also:
- 
Method SummaryModifier and TypeMethodDescriptionReturns the collection of values associated with the key.booleanStores a key-value pair in the multimap.Removes all the entries associated with the given key.booleanRemoves the given key value pair from the multimap.intsize()Returns the number of key-value pairs in the multimap.intvalueCount(K key) Returns the number of values matching the given key in the multimap.Methods inherited from interface com.hazelcast.core.DistributedObjectdestroy, getDestroyContextForTenant, getName, getPartitionKey, getServiceName
- 
Method Details- 
putStores a key-value pair in the multimap.- Specified by:
- putin interface- BaseMultiMap<K,- V> 
- Parameters:
- key- the key to be stored
- value- the value to be stored
- Returns:
- true if the size of the multimap is increased, false if the multimap already contains the key-value pair.
 
- 
getReturns the collection of values associated with the key.- Specified by:
- getin interface- BaseMultiMap<K,- V> 
- Parameters:
- key- the key whose associated values are returned
- Returns:
- the collection of the values associated with the key
 
- 
removeRemoves the given key value pair from the multimap.- Specified by:
- removein interface- BaseMultiMap<K,- V> 
- Parameters:
- key- the key of the entry to remove
- value- the value of the entry to remove
- Returns:
- true if the size of the multimap changed after the remove operation, false otherwise.
 
- 
removeRemoves all the entries associated with the given key.- Specified by:
- removein interface- BaseMultiMap<K,- V> 
- Parameters:
- key- the key of the entries to remove
- Returns:
- the collection of removed values associated with the given key. The returned collection might be modifiable, but it has no effect on the multimap.
 
- 
valueCountReturns the number of values matching the given key in the multimap.- Specified by:
- valueCountin interface- BaseMultiMap<K,- V> 
- Parameters:
- key- the key whose number of values is to be returned
- Returns:
- the number of values matching the given key in the multimap
 
- 
sizeint size()Returns the number of key-value pairs in the multimap.- Specified by:
- sizein interface- BaseMultiMap<K,- V> 
- Returns:
- the number of key-value pairs in the multimap
 
 
-