SharedMultiQueueModel<DataType extends Object> class

Independent logical model of ordered queues sharing one capacity.

This model intentionally uses ordinary software queues rather than the hardware implementation's physical slots and links.

Mixed-in types

Constructors

SharedMultiQueueModel({required int queueCount, required int capacity})
Creates an empty shared multi-queue model.

Properties

availableCount → int
Number of unused shared slots.
no setter
capabilities → StateTransactionCapabilities
Static software transaction behavior.
no setterinherited
capacity → int
Aggregate number of retained items.
final
hashCode → int
The hash code for this object.
no setterinherited
image → SharedMultiQueueImage<DataType>
Current logical image.
no setteroverride
occupancy → int
Number of retained items across every queue.
no setter
queueCount → int
Number of logical queues.
final
queueOccupancies → List<int>
Number of retained items in each logical queue.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stateTransactions → StateTransactionEndpoint<SharedMultiQueueImage<DataType>>
This model's software transaction endpoint.
no setterinherited

Methods

dequeue(int queue) → SharedMultiQueueDequeueResult<DataType>
Removes and returns the head of queue.
enqueue(int queue, DataType data) → SharedMultiQueueOperationStatus
Adds data to queue.
load(covariant SharedMultiQueueImage<DataType> image) → void
Replaces state from a compatible logical image.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() → void
Clears every logical queue.
toString() → String
A string representation of this object.
inherited
transact(StateTransactionRequest<SharedMultiQueueImage<DataType>> request, {bool quiescent = false}) → StateTransactionCompletion<SharedMultiQueueImage<DataType>>
Accepts a request and returns its completion.
inherited

Operators

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