public interface MultiMapCodecTemplate
| Modifier and Type | Method and Description | 
|---|---|
| Object | addEntryListener(String name,
                boolean includeValue,
                boolean localOnly)Adds an entry listener for this multimap. | 
| Object | addEntryListenerToKey(String name,
                     Data key,
                     boolean includeValue,
                     boolean localOnly)Adds the specified entry listener for the specified key.The listener will be notified for all
 add/remove/update/evict events for the specified key only. | 
| void | clear(String name)Clears the multimap. | 
| Object | containsEntry(String name,
             Data key,
             Data value,
             long threadId)Returns whether the multimap contains the given key-value pair. | 
| Object | containsKey(String name,
           Data key,
           long threadId)Returns whether the multimap contains an entry with the key. | 
| Object | containsValue(String name,
             Data value)Returns whether the multimap contains an entry with the value. | 
| Object | entrySet(String name)Returns the set of key-value pairs in the multimap.The collection is NOT backed by the map, so changes to the map
 are NOT reflected in the collection, and vice-versa | 
| void | forceUnlock(String name,
           Data key)Releases the lock for the specified key regardless of the lock owner. | 
| Object | get(String name,
   Data key,
   long threadId)Returns the collection of values associated with the key. | 
| Object | isLocked(String name,
        Data key)Checks the lock for the specified key. | 
| Object | keySet(String name)Returns the set of keys in the multimap.The collection is NOT backed by the map, so changes to the map are NOT
 reflected in the collection, and vice-versa. | 
| void | lock(String name,
    Data key,
    long threadId,
    long ttl)Acquires the lock for the specified key for the specified lease time. | 
| Object | put(String name,
   Data key,
   Data value,
   long threadId)Stores a key-value pair in the multimap. | 
| Object | remove(String name,
      Data key,
      long threadId)Removes the given key value pair from the multimap. | 
| Object | removeEntry(String name,
           Data key,
           Data value,
           long threadId)Removes all the entries with the given key. | 
| Object | removeEntryListener(String name,
                   String registrationId)Removes the specified entry listener. | 
| Object | size(String name)Returns the number of key-value pairs in the multimap. | 
| Object | tryLock(String name,
       Data key,
       long threadId,
       long lease,
       long timeout)Tries to acquire the lock for the specified key for the specified lease time. | 
| void | unlock(String name,
      Data key,
      long threadId)Releases the lock for the specified key regardless of the lock owner. | 
| Object | valueCount(String name,
          Data key,
          long threadId)Returns the number of values that match the given key in the multimap. | 
| Object | values(String name)Returns the collection of values in the multimap.The collection is NOT backed by the map, so changes to the map
 are NOT reflected in the collection, and vice-versa. | 
Object put(String name, Data key, Data value, long threadId)
name - Name of the MultiMapkey - The key to be storedvalue - The value to be storedthreadId - 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.Object get(String name, Data key, long threadId)
name - Name of the MultiMapkey - The key whose associated values are to be returnedthreadId - 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.Object remove(String name, Data key, long threadId)
name - Name of the MultiMapkey - The key of the entry to removethreadId - 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.Object keySet(String name)
name - Name of the MultiMapObject values(String name)
name - Name of the MultiMapObject entrySet(String name)
name - Name of the MultiMapObject containsKey(String name, Data key, long threadId)
name - Name of the MultiMapkey - The key whose existence is checked.threadId - 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.Object containsValue(String name, Data value)
name - Name of the MultiMapvalue - The value whose existence is checked.Object containsEntry(String name, Data key, Data value, long threadId)
name - Name of the MultiMapkey - The key whose existence is checked.value - The value whose existence is checked.threadId - 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 operationObject size(String name)
name - Name of the MultiMapvoid clear(String name)
name - Name of the MultiMapObject valueCount(String name, Data key, long threadId)
name - Name of the MultiMapkey - The key whose values count is to be returnedthreadId - 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 operationObject addEntryListenerToKey(String name, Data key, boolean includeValue, boolean localOnly)
name - Name of the MultiMapkey - The key to listen toincludeValue - True if EntryEvent should contain the value,false otherwiselocalOnly - if true fires events that originated from this node only, otherwise fires all eventsObject addEntryListener(String name, boolean includeValue, boolean localOnly)
name - Name of the MultiMapincludeValue - True if EntryEvent should contain the value,false otherwiselocalOnly - if true fires events that originated from this node only, otherwise fires all eventsObject removeEntryListener(String name, String registrationId)
name - Name of the MultiMapregistrationId - Registration id of listenervoid lock(String name, Data key, long threadId, long ttl)
name - Name of the MultiMapkey - The key the LockthreadId - 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 operationttl - The duration in milliseconds after which this entry shall be deleted. O means infinite.Object tryLock(String name, Data key, long threadId, long lease, long timeout)
name - Name of the MultiMapkey - Key to lock in this map.threadId - 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 operationlease - Time in milliseconds to wait before releasing the lock.timeout - Maximum time to wait for the lock.Object isLocked(String name, Data key)
name - Name of the MultiMapkey - Key to lock to be checked.void unlock(String name, Data key, long threadId)
name - Name of the MultiMapkey - The key to LockthreadId - 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 operationvoid forceUnlock(String name, Data key)
name - Name of the MultiMapkey - The key to LockObject removeEntry(String name, Data key, Data value, long threadId)
name - Name of the MultiMapkey - The key of the entry to removevalue - The value of the entry to removethreadId - 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 operationCopyright © 2015 Hazelcast, Inc.. All Rights Reserved.