PeerCorrelationId

org.sigilaris.node.gossip.GossipIdentifiers$package.PeerCorrelationId

Companion for PeerCorrelationId.

Attributes

Source
GossipIdentifiers.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

Compares two correlation ids lexicographically, used for simultaneous-open tie-breaking.

Compares two correlation ids lexicographically, used for simultaneous-open tie-breaking.

Value parameters

left

the first id

right

the second id

Attributes

Returns

negative, zero, or positive per standard comparison contract

Source
GossipIdentifiers.scala
def parse(value: String): Either[String, PeerCorrelationId]

Parses a string into a validated peer correlation id.

Parses a string into a validated peer correlation id.

Value parameters

value

the raw string; must already be a lowercase canonical UUIDv4

Attributes

Returns

the validated id or an error message

Source
GossipIdentifiers.scala

Generates a random peer correlation identifier.

Generates a random peer correlation identifier.

Attributes

Returns

a new random correlation id

Source
GossipIdentifiers.scala

Givens

Extensions

Extensions

extension (id: PeerCorrelationId)
def value: String

Attributes

Source
GossipIdentifiers.scala