SoftwareStateTransactionAdapter<ImageType extends Object> class
Adapts snapshot and restore callbacks to the software transaction contract.
The optional capability callback is evaluated for each request so models with optional snapshot support can report their current capabilities.
- Mixed-in types
-
- SoftwareStateTransactionEndpoint<
ImageType>
- SoftwareStateTransactionEndpoint<
Constructors
- SoftwareStateTransactionAdapter({required ImageType snapshot(), required void restore(ImageType), StateTransactionCapabilities capabilities()?})
-
Creates an endpoint backed by
snapshotandrestore.
Properties
- capabilities → StateTransactionCapabilities
-
Static software transaction behavior.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- image → ImageType
-
Current immutable logical image.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
stateTransactions
→ StateTransactionEndpoint<
ImageType> -
This model's software transaction endpoint.
no setterinherited
Methods
-
load(
covariant ImageType image) → void -
Validates and atomically replaces current logical state.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
transact(
StateTransactionRequest< ImageType> request, {bool quiescent = false}) → StateTransactionCompletion<ImageType> -
Accepts a request and returns its completion.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited