MemoryEventQueue class
In-memory fallback event queue used when the SQLite database is unavailable.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEmpty → bool
-
no setter
- isNotEmpty → bool
-
no setter
- length → int
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clear(
) → void - Clear all entries and reset the sequence counter.
-
containsEvent(
String eventName, int tsMillis) → bool -
dequeueAll(
) → List< EventRow> - Get all events as EventRow list, ordered by priority then timestamp.
-
drainToDb(
SqliteEventStorage db) → Future< int> - Drain all entries to the SQLite database. Returns number of events drained.
-
enqueue(
int tsMillis, String eventName, String payloadJson) → bool - Enqueue an event. Returns true if added, false if dropped due to caps.
-
markInFlight(
Set< int> seqs) → void - Mark entries as in-flight so enqueue() will not evict them.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
releaseInFlight(
Set< int> seqs) → void - Release in-flight reservations after the flush outcome is known.
-
removeBySeqs(
Set< int> seqs) → void - Remove entries by their sequence numbers.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- defaultMaxSize → const int
- priorityMaxSize → const int