ExRingRing. Domain. Entities. Node
(ex_ring_ring v0.1.0)
Copy Markdown
Represents a node in the consistent hash ring.
A node has a key (used for hashing), data (user-defined payload), and weight (used to determine virtual node count).
Summary
Functions
Gets the node data.
Gets the node key.
Gets the node weight.
Checks if the given term is a valid node.
Creates a new node with the given key.
Creates a new node with the given key and data.
Creates a new node with the given key, data, and weight or options.
Types
Functions
Gets the node data.
Gets the node key.
Gets the node weight.
Checks if the given term is a valid node.
Creates a new node with the given key.
Creates a new node with the given key and data.
@spec make(term(), term(), number() | keyword()) :: t()
@spec make(term(), term(), keyword()) :: t()
Creates a new node with the given key, data, and weight or options.