Nexus API Reference

NodeHashRing
in package

Read onlyYes
FinalYes
Tags
psalm-api
psalm-immutable

Consistent hash ring mapping actor names to cluster NodeAddresses. Same algorithm as WorkerPool's ConsistentHashRing but maps to nodes, not worker IDs.

Table of Contents

Methods

__construct()  : mixed
getNode()  : NodeAddress

Methods

__construct()

public __construct(array<int, NodeAddress$nodes[, int $virtualNodes = self::VIRTUAL_NODES ]) : mixed
Parameters
$nodes : array<int, NodeAddress>
$virtualNodes : int = self::VIRTUAL_NODES

        
On this page

Search results