public interface ReplicatedMapCodecTemplate
Modifier and Type | Method and Description |
---|---|
Object |
addEntryListener(String name,
boolean localOnly)
Adds an entry listener for this map.
|
Object |
addEntryListenerToKey(String name,
Data key,
boolean localOnly)
Adds the specified entry listener for the specified key.
|
Object |
addEntryListenerToKeyWithPredicate(String name,
Data key,
Data predicate,
boolean localOnly)
Adds an continuous entry listener for this map.
|
Object |
addEntryListenerWithPredicate(String name,
Data predicate,
boolean localOnly)
Adds an continuous entry listener for this map.
|
Object |
addNearCacheEntryListener(String name,
boolean includeValue,
boolean localOnly) |
void |
clear(String name)
The clear operation wipes data out of the replicated maps.It is the only synchronous remote operation in this
implementation, so be aware that this might be a slow operation.
|
Object |
containsKey(String name,
Data key)
Returns true if this map contains a mapping for the specified key.
|
Object |
containsValue(String name,
Data value)
Returns true if this map maps one or more keys to the specified value.
|
Object |
entrySet(String name) |
Object |
get(String name,
Data key)
Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key.
|
Object |
isEmpty(String name)
Return true if this map contains no key-value mappings
|
Object |
keySet(String name)
Returns a lazy Set view of the key contained in this map.
|
Object |
put(String name,
Data key,
Data value,
long ttl)
Associates a given value to the specified key and replicates it to the cluster.
|
void |
putAll(String name,
List<Map.Entry<Data,Data>> entries)
Copies all of the mappings from the specified map to this map (optional operation).
|
Object |
remove(String name,
Data key)
Removes the mapping for a key from this map if it is present (optional operation).
|
Object |
removeEntryListener(String name,
String registrationId)
Removes the specified entry listener.
|
Object |
size(String name)
Returns the number of key-value mappings in this map.
|
Object |
values(String name) |
Object put(String name, Data key, Data value, long ttl)
name
- Name of the ReplicatedMapkey
- Key with which the specified value is to be associated.value
- Value to be associated with the specified keyttl
- ttl in milliseconds to be associated with the specified key-value pairObject size(String name)
name
- Name of the ReplicatedMapObject isEmpty(String name)
name
- Name of the ReplicatedMapObject containsKey(String name, Data key)
name
- Name of the ReplicatedMapkey
- The key whose associated value is to be returned.Object containsValue(String name, Data value)
name
- Name of the ReplicatedMapvalue
- value whose presence in this map is to be testedObject get(String name, Data key)
name
- Name of the ReplicatedMapkey
- The key whose associated value is to be returnedObject remove(String name, Data key)
name
- Name of the ReplicatedMapkey
- Key with which the specified value is to be associated.void putAll(String name, List<Map.Entry<Data,Data>> entries)
name
- Name of the ReplicatedMapentries
- entries to be stored in this mapvoid clear(String name)
name
- Name of the Replicated MapObject addEntryListenerToKeyWithPredicate(String name, Data key, Data predicate, boolean localOnly)
name
- Name of the Replicated Mapkey
- Key with which the specified value is to be associated.predicate
- The predicate for filtering entrieslocalOnly
- if true fires events that originated from this node only, otherwise fires all eventsObject addEntryListenerWithPredicate(String name, Data predicate, boolean localOnly)
name
- Name of the Replicated Mappredicate
- The predicate for filtering entrieslocalOnly
- if true fires events that originated from this node only, otherwise fires all eventsObject addEntryListenerToKey(String name, Data key, boolean localOnly)
name
- Name of the Replicated Mapkey
- Key with which the specified value is to be associated.localOnly
- if true fires events that originated from this node only, otherwise fires all eventsObject addEntryListener(String name, boolean localOnly)
name
- Name of the ReplicatedMaplocalOnly
- if true fires events that originated from this node only, otherwise fires all eventsObject removeEntryListener(String name, String registrationId)
name
- Name of the ReplicatedMapregistrationId
- ID of the registered entry listener.Object keySet(String name)
name
- Name of the ReplicatedMapObject values(String name)
name
- Name of the ReplicatedMapObject entrySet(String name)
name
- Name of the ReplicatedMapObject addNearCacheEntryListener(String name, boolean includeValue, boolean localOnly)
name
- Name of the ReplicatedMapincludeValue
- True if EntryEvent should contain the value,false otherwiselocalOnly
- if true fires events that originated from this node only, otherwise fires all eventsCopyright © 2016 Hazelcast, Inc.. All Rights Reserved.