SnapshotableCacheModelReplacement class abstract interface

Optional snapshot support for a behavioral replacement policy.

Images must be detached and immutable. After validateSnapshot succeeds, restoreSnapshot must not fail or partially apply the image.

Implementers
Annotations

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
restoreSnapshot(Object image) → void
Replaces the state with an already validated image.
snapshotReplacement() → Object
Captures the complete replacement state.
toString() → String
A string representation of this object.
inherited
validateSnapshot(Object image) → void
Rejects an image that cannot be restored by this policy.

Operators

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