View Source ProcessHub.Strategy.PartitionTolerance.Base protocol (ProcessHub v0.1.0-alpha)
The partition tolerance strategy protocol defines the behavior for handling
node up and down events in the ProcessHub
cluster.
Summary
Functions
This function is called when a new node leaves the ProcessHub
cluster.
This function is called when a new node joins the ProcessHub
cluster.
This function is called when ProcessHub
is starting up.
Types
@type t() :: term()
Functions
@spec handle_node_down(t(), ProcessHub.hub_id(), node(), [node()]) :: :ok
This function is called when a new node leaves the ProcessHub
cluster.
@spec handle_node_up(t(), ProcessHub.hub_id(), node(), [node()]) :: :ok
This function is called when a new node joins the ProcessHub
cluster.
@spec handle_startup(t(), ProcessHub.hub_id(), [node()]) :: :ok
This function is called when ProcessHub
is starting up.