IndexAllocator class abstract interface

Protocol-neutral action contract of a free-index allocator core.

A client offers to take allocatedIndex with allocate while canAllocate is high; allocateAccepted reports that it was taken. The offered index stays stable until it is taken. A client offers to return an index with release; releaseAccepted reports that it was accepted, which requires canRelease. canRelease may depend on a same-cycle accepted allocation. A ready/valid ReadyValidIndexAllocator shell maps its allocation and release streams directly onto these actions.

Implementers

Properties

allocateAccepted → Logic
High when an allocation offer is accepted this cycle.
no setter
allocatedIndex → Logic
The index offered for allocation.
no setter
availableCount → Logic
Number of indices currently available for allocation.
no setter
canAllocate → Logic
High when allocatedIndex is available to be taken.
no setter
canRelease → Logic
High when a returned index can be accepted this cycle.
no setter
capacity → int
Number of independently managed indices.
no setter
exhausted → Logic
High when initialization is complete and no index is available.
no setter
hashCode → int
The hash code for this object.
no setterinherited
indexWidth → int
Width required to represent every managed index.
no setter
initializing → Logic
High while reset-time initialization is running.
no setter
releaseAccepted → Logic
High when a release offer is accepted this cycle.
no setter
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
toString() → String
A string representation of this object.
inherited

Operators

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