Adds an item listener for this queue. Listener will be invoked for any add/remove item events.
Registration id of the listener.
true if updated item should be included in the event.
Removes all items in this queue and add them to the end of given arr.
number of items moved from this queue to the array.
Optional maxElements: numbermaximum number of elements that would be moved.
Inserts given item at the end of the queue if there is room. If queue capacity is full, offer operation fails.
true if the item is successfully added, false otherwise.
Optional time: numberif specified, operation waits for time milliseconds for
space to become available before returning false.
Retrieves and removes the top of this queue.
the head of this queue or null if no element is available.
Optional time: numberoperation waits upto time milliseconds if this queue is empty. The default value of this parameter is 0,
which means no waiting.
Generated using TypeDoc
Concurrent, distributed, observable queue.
Methods that require serialization/deserialization may throw RangeError, e.g when there is no suitable serializer for a certain type.