public class TransactionalMultiMapProxy<K,V> extends TransactionalMultiMapProxySupport<K,V>
config, name
tx
PARTITIONING_STRATEGY
Constructor and Description |
---|
TransactionalMultiMapProxy(NodeEngine nodeEngine,
MultiMapService service,
String name,
Transaction tx) |
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.
|
String |
toString() |
int |
valueCount(K key)
Returns the number of values matching the given key in the multimap.
|
getName, getServiceName, size
toObjectIfNeeded
destroy, equals, getDistributedObjectName, getNameAsPartitionAwareData, getNodeEngine, getOperationService, getPartitionId, getPartitionKey, getService, hashCode, invalidate, invokeOnPartition, isClusterVersionEqualTo, isClusterVersionGreaterOrEqual, isClusterVersionGreaterThan, isClusterVersionLessOrEqual, isClusterVersionLessThan, isClusterVersionUnknown, isClusterVersionUnknownOrGreaterOrEqual, isClusterVersionUnknownOrGreaterThan, isClusterVersionUnknownOrLessOrEqual, isClusterVersionUnknownOrLessThan, postDestroy, preDestroy, throwNotActiveException, toData
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
destroy, getPartitionKey
public TransactionalMultiMapProxy(NodeEngine nodeEngine, MultiMapService service, String name, Transaction tx)
public boolean put(K key, V value) throws TransactionException
TransactionalMultiMap
key
- the key to be storedvalue
- the value to be storedTransactionException
public Collection<V> get(K key)
TransactionalMultiMap
key
- the key whose associated values are returnedpublic boolean remove(Object key, Object value)
TransactionalMultiMap
key
- the key of the entry to removevalue
- the value of the entry to removepublic Collection<V> remove(Object key)
TransactionalMultiMap
key
- the key of the entries to removepublic int valueCount(K key)
TransactionalMultiMap
key
- the key whose number of values is to be returnedpublic String toString()
toString
in class AbstractDistributedObject<MultiMapService>
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.