Helios v0.1.0 Helios.Registry.Distribution.Ring View Source

Default Helios.Registry distribution strategy.

Link to this section Summary

Functions

Adds a node to the state of the current distribution strategy

Adds a node to the state of the current distribution strategy, and give it a specific weighting relative to other nodes

Adds a list of nodes to the state of the current distribution strategy. The node list can be composed of both node names (atoms) or tuples containing a node name and a weight for that node

Maps a key to a specific node via the current distribution strategy

Removes a node from the state of the current distribution strategy

Link to this section Functions

Adds a node to the state of the current distribution strategy.

Callback implementation for Helios.Registry.Distribution.Strategy.add_node/2.

Link to this function add_node(ring, node, weight) View Source

Adds a node to the state of the current distribution strategy, and give it a specific weighting relative to other nodes.

Callback implementation for Helios.Registry.Distribution.Strategy.add_node/3.

Adds a list of nodes to the state of the current distribution strategy. The node list can be composed of both node names (atoms) or tuples containing a node name and a weight for that node.

Callback implementation for Helios.Registry.Distribution.Strategy.add_nodes/2.

Maps a key to a specific node via the current distribution strategy.

Callback implementation for Helios.Registry.Distribution.Strategy.key_to_node/2.

Removes a node from the state of the current distribution strategy.

Callback implementation for Helios.Registry.Distribution.Strategy.remove_node/2.