MemoryLedgerStore class

A LedgerStore that lives only as long as the process.

The default, and honest about what it costs: a node that restarts forgets what it owned, so the first plan afterwards sees every resource as adopted and will not remove anything on unassign. Losing the ability to clean up is the right failure — the alternative is deleting things on a guess.

Implemented types

Constructors

MemoryLedgerStore()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear(String blueprint) Future<void>
Forgets blueprint entirely.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read(String blueprint) Future<Ledger?>
The ledger for blueprint, or null if it has never been applied here.
override
toString() String
A string representation of this object.
inherited
write(Ledger ledger) Future<void>
Records ledger.
override

Operators

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