EventQueue class

A thread-safe in-memory queue for EventRequest objects.

The queue has a maximum capacity defined by _maxQueueSize. When the queue is full, new events are dropped to prevent memory exhaustion.

Constructors

EventQueue()

Properties

count → int
Returns the number of queued events
no setter
hashCode → int
The hash code for this object.
no setterinherited
isEmpty → bool
Checks if the queue is empty
no setter
isFull → bool
Checks if the queue is full
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear() → void
Clears all events from the queue
dequeue() → EventRequest?
Removes and returns the oldest EventRequest from the front of the queue.
enqueue(EventRequest event) → bool
Adds an event to the end of the queue.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
peek() → List<EventRequest>
Returns a snapshot of all events currently in the queue without removing them.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited