QueueStore class abstract

Abstraction for queue persistence. The default InMemoryQueueStore does NOT survive app restarts.

Implementers

Constructors

QueueStore()

Properties

all List<QueuedRequest>
All requests currently in the queue (oldest first).
no setter
hashCode int
The hash code for this object.
no setterinherited
isEmpty bool
Whether the queue is empty.
no setter
length int
Number of queued requests.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear() → void
Clear all queued requests.
dequeue() QueuedRequest?
Remove and return the next request, or null if empty.
enqueue(QueuedRequest request) → void
Add a request to the end of the queue.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
peek() QueuedRequest?
Peek at the next request without removing it.
remove(String id) bool
Remove a specific request by its id.
toString() String
A string representation of this object.
inherited

Operators

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