MemoryInfrastructure class final
The system-level resources a MemoryCell runs on.
scheduler and clock are the test seams: open falls back to
TimerScheduler and SystemMemoryClock when either is null.
ownsStore transfers the MemoryRecord.store's close to the cell.
Constructors
-
MemoryInfrastructure({MemoryScheduler? scheduler, MemoryClock? clock, bool ownsStore = false, Map<
MemoryAction, Instruction< ? customCatalog})Cell, Pulse, Pulse> > -
Creates the infrastructure.
const
Properties
- clock → MemoryClock?
-
Provides the timestamps for metadata and expiration checks; null
selects the SystemMemoryClock default.
final
-
customCatalog
→ Map<
MemoryAction, Instruction< ?Cell, Pulse, Pulse> > -
Per-action instruction overrides merged over the default catalog
at
MemoryCell.open.final - hashCode → int
-
The hash code for this object.
no setterinherited
- ownsStore → bool
-
If true, calling
close()on the resulting cell also closes the MemoryRecord.store.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scheduler → MemoryScheduler?
-
Manages the timing of debounced or delayed writes; null selects
the TimerScheduler default.
final
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