View Source Spawn.Cluster.StateHandoff.Controllers.NatsKvController (spawn v2.0.0-RC7)

This handles state handoff in a cluster.

It uses the Nats jetstream library to handle a distributed state, which is an eventually consistent replicated data type.

Summary

Functions

Cluster HostActor cleanup

Types

data()

@type data() :: any()

host()

@type host() :: Actors.Registry.HostActor.t()

hosts()

@type hosts() :: [Actors.Registry.HostActor.t()]

id()

@type id() :: Spawn.Actors.ActorId.t()

new_data()

@type new_data() :: data()

node_type()

@type node_type() :: term()

opts()

@type opts() :: Keyword.t()

timer()

@type timer() :: {atom(), integer()}

Functions

clean(node, data)

Cluster HostActor cleanup