Adds an entry listener for this map. The listener will be notified for all map add/remove/update/evict events.
registration id of the listener
Adds the specified entry listener for the specified key. The listener will be notified for all add/remove/update/evict events of the specified key only.
listener object
key to restrict events to associated entry
Registration id of the listener.
Adds a continuous entry listener for this map. The listener will be notified for map add/remove/update/evict events filtered by the given predicate.
listener object
key to restrict events to associated entry
predicate
registration id of the listener
Adds a continuous entry listener for this map. The listener will be notified for map add/remove/update/evict events filtered by the given predicate.
listener object
predicate
registration id of the listener
Wipes data out of the replicated maps. If some node fails on executing the operation, it is retried for at most 5 times (on the failing nodes only).
Returns true
if this map contains a mapping for the specified key. This
message is idempotent.
the key to search for
true
if this map contains the specified key, false
otherwise
Returns true
if this map maps one or more keys to the specified value.
the value to search for
true
if the specified value is associated with at least one key
Destroys this object cluster-wide. Clears all resources taken for this object.
Returns map entries as an array of key-value pairs.
map entries as an array of key-value pairs
Returns the value to which the specified key is mapped, or null
if this map
contains no mapping for the key.
If this map permits null
values, then a return value of null
does not
necessarily indicate that the map contains no mapping for the key; it's also
possible that the map explicitly maps the key to null. The containsKey
operation may be used to distinguish these two cases. This message is
idempotent.
the key of the map entry
value associated with the specified key
Returns the unique name of this object.
Returns the key of the partition that this DistributedObject is assigned to.
For a partitioned data structure, the returned value will not be null
,
but otherwise undefined
.
Returns the service name for this object.
true
if this map has no entries, false
otherwise
Returns a view of the key contained in this map.
keys of this map as an array
Associates a given value to the specified key and replicates it to the cluster. If there is an old value, it will be replaced by the specified one and returned from the call.
the key of the map entry
new value
optional time to live in milliseconds. 0
means infinite.
old value if there was any, null
otherwise
Copies all the mappings from the specified key-value pairs array to this map.
The behavior of this operation is undefined if the specified map is modified while the operation is in progress.
entries to be put
Removes the mapping for a key from this map if it is present.
the key of the map entry
value associated with key, null
if the key did not exist before
Removes the specified entry listener. Returns silently if there was no such listener added before. This message is idempotent.
registration id of the listener
true
if remove operation is successful, false
if unsuccessful
or this listener did not exist
Returns the number of key-value mappings in this map. If the map contains
more than Integer.MAX_VALUE
(Java; 2^31-1) elements, returns
Integer.MAX_VALUE
.
the number of key-value mappings in this map.
Returns an eagerly populated collection view of the values contained in this map.
optional ListComparator function to sort the returned elements
a list of values contained in this map
Generated using TypeDoc
A specialized map whose values locally stored on every node of the cluster.
Methods that require serialization/deserialization may throw RangeError, e.g when there is no suitable serializer for a certain type.