SharedMultiQueueImage<DataType extends Object> class

Stable logical state for ordered queues sharing one capacity.

The image records only queue order and aggregate capacity. Physical slots, free-list state, and next-slot links are intentionally excluded.

Constructors

SharedMultiQueueImage({required int capacity, required Iterable<Iterable<DataType>> queues})
Creates a shared multi-queue image.

Properties

capacity → int
Maximum number of retained items across all queues.
final
hashCode → int
The hash code for this object.
no setterinherited
occupancy → int
Number of retained items across every logical queue.
no setter
queueCount → int
Number of logical queues.
no setter
queues → List<List<DataType>>
Ordered items in each logical queue.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson(StateValueEncoder<DataType> encodeData) → Map<String, Object?>
Encodes this image independently of physical slot organization.
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

fromJson<DataType extends Object>(Map<String, Object?> json, StateValueDecoder<DataType> decodeData) → SharedMultiQueueImage<DataType>
Decodes a shared multi-queue image.

Constants

kind → const String
Stable schema identifier.
version → const int
Current schema version.