Cizen.SagaRegistry (Cizen v0.18.1) View Source
A key-value saga storage.
It works like Registry
.
Link to this section Summary
Link to this section Types
Specs
Specs
entry() :: {Cizen.SagaID.t(), value()}
Specs
guards() :: Registry.guards()
Specs
key() :: Registry.key()
Specs
registry() :: Registry.registry()
Specs
value() :: Registry.value()
Link to this section Functions
See Registry.count/1
.
Specs
dispatch(registry(), key(), dispatcher(), keyword()) :: :ok
Specs
keys(registry(), Cizen.SagaID.t()) :: [value()]
Specs
See Registry.meta/2
.
See Registry.put_meta/3
.
Specs
register(registry(), Cizen.SagaID.t(), key(), value()) :: {:ok, pid()} | {:error, {:already_registered, Cizen.SagaID.t()}} | {:error, :no_saga}
Specs
unregister(registry(), Cizen.SagaID.t(), key()) :: :ok | {:error, :no_saga}