public interface TransactionalMultiMapCodecTemplate
Modifier and Type | Method and Description |
---|---|
Object |
get(String name,
String txnId,
long threadId,
Data key)
Returns the collection of values associated with the key.
|
Object |
put(String name,
String txnId,
long threadId,
Data key,
Data value)
Stores a key-value pair in the multimap.
|
Object |
remove(String name,
String txnId,
long threadId,
Data key)
Removes the given key value pair from the multimap.
|
Object |
removeEntry(String name,
String txnId,
long threadId,
Data key,
Data value)
Removes all the entries associated with the given key.
|
Object |
size(String name,
String txnId,
long threadId)
Returns the number of key-value pairs in the multimap.
|
Object |
valueCount(String name,
String txnId,
long threadId,
Data key)
Returns the number of values matching the given key in the multimap.
|
Object put(String name, String txnId, long threadId, Data key, Data value)
name
- Name of the Transactional Multi MaptxnId
- ID of the transactionthreadId
- The id of the user thread performing the operation. It is used to guarantee that only the lock holder thread (if a lock exists on the entry) can perform the requested operation.key
- The key to be storedvalue
- The value to be storedObject get(String name, String txnId, long threadId, Data key)
name
- Name of the Transactional Multi MaptxnId
- ID of the transactionthreadId
- The id of the user thread performing the operation. It is used to guarantee that only the lock holder thread (if a lock exists on the entry) can perform the requested operation.key
- The key whose associated values are returnedObject remove(String name, String txnId, long threadId, Data key)
name
- Name of the Transactional Multi MaptxnId
- ID of the transactionthreadId
- The id of the user thread performing the operation. It is used to guarantee that only the lock holder thread (if a lock exists on the entry) can perform the requested operation.key
- The key whose associated values are returnedObject removeEntry(String name, String txnId, long threadId, Data key, Data value)
name
- Name of the Transactional Multi MaptxnId
- ID of the this transaction operationthreadId
- The id of the user thread performing the operation. It is used to guarantee that only the lock holder thread (if a lock exists on the entry) can perform the requested operation.key
- The key whose associated values are returnedvalue
- The value to be storedObject valueCount(String name, String txnId, long threadId, Data key)
name
- Name of the Transactional Multi MaptxnId
- ID of the this transaction operationthreadId
- The id of the user thread performing the operation. It is used to guarantee that only the lock holder thread (if a lock exists on the entry) can perform the requested operation.key
- The key whose number of values are returnedObject size(String name, String txnId, long threadId)
name
- Name of the Transactional Multi MaptxnId
- ID of the this transaction operationthreadId
- The id of the user thread performing the operation. It is used to guarantee that only the lock holder thread (if a lock exists on the entry) can perform the requested operation.Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.