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.
Registration id of the listener.
listener object
key to restrict events to associated entry
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.
registration id of the listener
listener object
key to restrict events to associated entry
predicate
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.
registration id of the listener
listener object
predicate
Returns true if this map contains a mapping for the specified key. This
message is idempotent.
AssertionError if key is null
true if this map contains the specified key, false otherwise
the key to search for
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.
AssertionError if key is null
value associated with the specified key
the key of the map entry
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.
AssertionError if key or value is null
old value if there was any, null otherwise
the key of the map entry
new value
Optional ttl: number | Longoptional time to live in milliseconds. 0 means infinite.
Removes the specified entry listener. Returns silently if there was no such listener added before. This message is idempotent.
true if remove operation is successful, false if unsuccessful
or this listener did not exist
registration id of the listener
Returns an eagerly populated collection view of the values contained in this map.
a list of values contained in this map
Optional comparator: ListComparator<V>optional ListComparator function to sort the returned elements
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.