MessageQueue class
Represents a queue for managing messages waiting to be processed.
The MessageQueue class is responsible for storing and organizing
a collection of WaitingMessage objects associated with a specific channel.
This queue provides methods to add individual messages or multiple messages at once, ensuring they are kept in the order they were added.
Constructors
- MessageQueue(String channelId)
-
Creates a new
MessageQueueassociated with the givenchannelId.
Properties
- channelId → String
-
The unique identifier for the channel this queue belongs to.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
waitingMessages
↔ List<
WaitingMessage> -
A list of messages waiting to be processed.
getter/setter pair
Methods
-
enqueue(
WaitingMessage waitingMessage) → void - Adds a single WaitingMessage to the queue.
-
enqueueMany(
List< WaitingMessage> messages) → void - Adds multiple WaitingMessage objects to the queue at once.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited