RosterSnapshot

data class RosterSnapshot(val peers: Set<PeerId>)

A snapshot of the current peer roster that feeds the TaskRing.

The ring IS the roster — a RosterSnapshot is the primitive the ring is built from. Two pluggable sources produce snapshots:

Both sources deliver a plain Set<PeerId>TaskRing needs only that.

Parameters

peers

The current live peer set. Empty means no tasks can be assigned.

Constructors

Link copied to clipboard
constructor(peers: Set<PeerId>)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun toTaskRing(vnodeCount: Int = 150, seed: Long = 0): TaskRing

Builds a TaskRing from this roster snapshot.