StaticPeerRegistry
org.sigilaris.node.gossip.StaticPeerRegistry
final case class StaticPeerRegistry(topology: StaticPeerTopology) extends PeerRegistry
A PeerRegistry backed by a static peer topology.
Value parameters
- topology
-
the static topology describing known peers and neighbors
Attributes
- Source
- Contracts.scala
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait PeerRegistryclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Inherited methods
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 the peer is a direct neighbor
- Inherited from:
- PeerRegistry
- Source
- Contracts.scala
Checks whether the given peer is a known peer.
Checks whether the given peer is a known peer.
Value parameters
- peer
-
the peer identity to check
Attributes
- Returns
-
true if the peer is known
- Inherited from:
- PeerRegistry
- Source
- Contracts.scala
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
Concrete fields
Attributes
- Returns
-
the set of peers that are direct neighbors of the local peer
- Source
- Contracts.scala
Attributes
- Returns
-
the set of all known peer identities in the network
- Source
- Contracts.scala
Attributes
- Returns
-
the identity of the local peer
- Source
- Contracts.scala
In this article