View Source ProcessHub.Strategy.PartitionTolerance.Base protocol (ProcessHub v0.1.3-alpha)

The partition tolerance strategy protocol defines the behavior for handling node up and down events in the ProcessHub cluster.

Summary

Types

t()

All the types that implement this protocol.

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()

All the types that implement this protocol.

Functions

Link to this function

handle_node_down(strategy, hub_id, node, cluster_nodes)

View Source
@spec handle_node_down(t(), ProcessHub.hub_id(), node(), [node()]) :: :ok

This function is called when a new node leaves the ProcessHub cluster.

Link to this function

handle_node_up(strategy, hub_id, node, cluster_nodes)

View Source
@spec handle_node_up(t(), ProcessHub.hub_id(), node(), [node()]) :: :ok

This function is called when a new node joins the ProcessHub cluster.

Link to this function

handle_startup(strategy, hub_id, cluster_nodes)

View Source
@spec handle_startup(t(), ProcessHub.hub_id(), [node()]) :: :ok

This function is called when ProcessHub is starting up.