Import
import { RefHashRing } from "@typed/fx";This public exposure is a re-export. Its import path is supported; declaration documentation is shared with the other public exposures below.
Signatures
export * as RefHashRing from "./RefHashRing.js";Members
RefHashRing.RefHashRingA RefHashRing is a RefSubject specialized over a HashRing.
RefHashRing.addAdd a node to the HashRing.
RefHashRing.addManyAdd multiple nodes to the HashRing.
RefHashRing.emptyCreates a new empty RefHashRing.
RefHashRing.getGet the node which should handle a given input string as a Filtered. Fails if the ring is empty.
RefHashRing.getNodeGet the node which should handle a given input string as a Computed. Returns undefined if the ring is empty.
RefHashRing.getShardsGet shard distribution across nodes.
RefHashRing.hasCheck if a node exists in the HashRing.
RefHashRing.isEmptyCheck if the HashRing is empty.
RefHashRing.makeCreates a new
RefHashRingfrom a HashRing,Effect, orFx.RefHashRing.removeRemove a node from the HashRing.
RefHashRing.sizeGet the number of nodes in the HashRing.
RefHashRing.valuesGet all nodes as an array.