InMemoryWorkflowSnapshotStore class final
A WorkflowSnapshotStore that lives as long as the process.
Snapshots are kept as JSON rather than as objects, so state that does not serialise fails in a test against this store instead of on a user's phone against a durable one.
- Implemented types
Constructors
- InMemoryWorkflowSnapshotStore()
- Creates an empty store.
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
-
delete(
String runId) → Future< bool> -
Deletes the snapshot for
runId. Returns whether one existed.override -
dispose(
) → Future< void> - Releases every resource held by this object.
-
list(
{String? graphId}) → Future< List< WorkflowSnapshot> > -
Every stored snapshot, longest waiting first, optionally for one graph.
override
-
load(
String runId) → Future< WorkflowSnapshot?> -
The snapshot for
runId, ornull.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
save(
WorkflowSnapshot snapshot) → Future< void> -
Saves
snapshotunder its run id, replacing any earlier one.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited