StaticPeerTopology

org.sigilaris.node.gossip.StaticPeerTopology
See theStaticPeerTopology companion object
final case class StaticPeerTopology(localNodeIdentity: PeerIdentity, knownPeers: Set[PeerIdentity], directNeighbors: Set[PeerIdentity])

A static, immutable description of the peer topology for a gossip node.

Value parameters

directNeighbors

the subset of known peers that are direct neighbors

knownPeers

all known peer identities (excluding the local node)

localNodeIdentity

the identity of the local node

Attributes

Companion
object
Source
PeerRegistry.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def isDirectNeighbor(peer: PeerIdentity): Boolean

Checks whether the given peer is a direct neighbor.

Checks whether the given peer is a direct neighbor.

Value parameters

peer

the peer identity to check

Attributes

Returns

true if a direct neighbor

Source
PeerRegistry.scala
def isKnownPeer(peer: PeerIdentity): Boolean

Checks whether the given peer is in the set of known peers.

Checks whether the given peer is in the set of known peers.

Value parameters

peer

the peer identity to check

Attributes

Returns

true if known

Source
PeerRegistry.scala

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product