IStateStore class abstract

Interface for state storages that are used to store and retrieve transaction states.

Implementers

Constructors

IStateStore()

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

delete<T>(String? correlationId, String key) Future<T?>
Deletes a state from the store by its key.
load<T>(String? correlationId, String key) Future<T?>
Loads state from the store using its key. If value is missing in the store it returns null.
loadBulk<T>(String? correlationId, List<String> keys) Future<List<StateValue<T>>>
Loads an array of states from the store using their keys.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
save<T>(String? correlationId, String key, dynamic value) Future<T>
  • correlationId (optional) transaction id to trace execution through call chain.
  • key a unique state key.
  • value a state value. Return The state that was stored in the store.
  • toString() String
    A string representation of this object.
    inherited

    Operators

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