roger v1.4.0 Roger.Partition.Global.StatePersister behaviour View Source
Behaviour for the persistence of the global partition state.
See Roger.Partition.Global
on how to implement a custom persister module.
Link to this section Summary
Callbacks
Called when the global state process starts
Called when the global state needs to be loaded
Called when the global state needs to be stored
Link to this section Callbacks
Called when the global state process starts.
Link to this callback
load(id)
View Source
load(id :: String.t()) :: {:ok, binary()} | {:error, term()}
Called when the global state needs to be loaded.
Called when the global state needs to be stored.