Adds an entry listener to this multi-map.
registration ID for this entry listener
entry listener to be attached
Optional key: Kif specified then this entry listener will only be notified of updates related to this key.
Optional includeValue: booleanif true, then the event will include the modified value.
Retrieves a list of values associated with the specified key.
a list of values associated with the specified key.
key to search for.
Locks the specified key. If the specified key cannot be locked immediately, then the returned Promise will be resolved only when the lock becomes available. All attempts to access the locked key will block until the lock is released.
Locking is reentrant, meaning that the lock owner client can obtain the lock multiple times.
If the lock was acquired multiple times, then unlock() method must be called the same amount of
times, otherwise the lock will remain unavailable.
If lease time is specified, then the lock will automatically become available
after the specified time has passed.
If lease time is not specified or is less than zero,
then lock owner must call unlock to make the lock available.
key to be locked.
Optional leaseMillis: numberlease time in milliseconds.
Adds a key-value pair to this multi-map. If this multi-map already has some value associated with the specified key, then calling this method will not replace the old value. Instead, both values will be associated with the same key.
true if this multi-map did not have the specified value associated
with the specified key, false otherwise.
key to add.
value to associate with the key.
Stores the given key, value array pairs in the MultiMap.
The behaviour of this operation is undefined if the specified pairs are modified while this operation is in progress.
No atomicity guarantees are given. It could be that in case of failure some of the key/value-pairs get written, while others are not.
key-value array pairs
Removes an association of the specified value with the specified key. Calling this method does not affect other values associated with the same key.
true if the value was detached from the specified key, false if it was not.
key from which the value should be detached.
value to be removed.
Detaches all values from the specified key.
a list of old values that were associated with this key prior to this method call.
key from which all entries should be removed.
Attempts to acquire the lock for the specified key within the specified timeout. The returned promise will be returned either when the lock becomes available or when the timeout is reached.
If the specified key cannot be locked immediately, then the returned Promise will be resolved only when the lock becomes available. All attempts to access the locked key will block until the lock is released.
Locking is reentrant, meaning that the lock owner client can obtain the lock multiple times.
If the lock was acquired multiple times, then unlock() method must be called the same amount of
times, otherwise the lock will remain unavailable.
If lease time is specified, then the lock will automatically become available
after the specified time has passed.
If lease time is not specified or is less than zero,
then lock owner must call unlock to make the lock available.
key to be locked
Optional timeoutMillis: numbertimeout for locking, in milliseconds
Optional leaseMillis: numberlease time in milliseconds
a flat list of all values stored in this multi-map.
Generated using TypeDoc
A specialized map whose keys can be associated with multiple values.
Methods that require serialization/deserialization may throw RangeError, e.g when there is no suitable serializer for a certain type.