StateTransactionCapabilities class

Static snapshot and restore capabilities of a stateful component.

Constructors

StateTransactionCapabilities({required StateTransactionTransport transport, required bool supportsSnapshot, required bool supportsRestore, required StateTransactionQuiescence snapshotQuiescence, required StateTransactionQuiescence restoreQuiescence, required StateTransactionCompletionMode completionMode, required bool atomicRestore})
Creates a validated state-transaction capability declaration.
factory

Properties

atomicRestore → bool
Whether restore becomes visible as one indivisible state replacement.
final
completionMode → StateTransactionCompletionMode
How an accepted request reports completion.
final
hashCode → int
The hash code for this object.
no setterinherited
restoreQuiescence → StateTransactionQuiescence
Quiescence required before restore acceptance.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
snapshotQuiescence → StateTransactionQuiescence
Quiescence required before snapshot acceptance.
final
supportsRestore → bool
Whether a logical state image can replace current state.
final
supportsSnapshot → bool
Whether a logical state image can be captured.
final
transport → StateTransactionTransport
Transport used for transactions.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requiresQuiescence(StateTransactionOperation operation) → bool
Whether operation requires the caller to establish quiescence.
toString() → String
A string representation of this object.
inherited
validateRequest(StateTransactionOperation operation, {required bool quiescent}) → void
Rejects an unsupported or insufficiently quiesced request.

Operators

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

Constants

quiescedHardwareRestore → const StateTransactionCapabilities
Atomic restore through an acknowledged, externally quiesced protocol.
software → const StateTransactionCapabilities
Immediate software snapshot and atomic restore support.
unsupported → const StateTransactionCapabilities
No snapshot or restore support.