PeerRelationship

org.sigilaris.node.gossip.PeerRelationship
See thePeerRelationship companion object
final case class PeerRelationship(peer: PeerIdentity, peerCorrelationId: PeerCorrelationId, outbound: Option[DirectionalSession], inbound: Option[DirectionalSession], status: PeerRelationshipStatus, wasBidirectionalOpen: Boolean)

Aggregate state of a bidirectional relationship with a single peer.

Value parameters

inbound

the inbound directional session, if any

outbound

the outbound directional session, if any

peer

the remote peer identity

peerCorrelationId

the current correlation id for this relationship

status

the aggregate relationship status

wasBidirectionalOpen

true if both directions were simultaneously open at any point

Attributes

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

Members list

Value members

Concrete methods

Finds a directional session by its id among the outbound and inbound sessions.

Finds a directional session by its id among the outbound and inbound sessions.

Value parameters

sessionId

the session id to look for

Attributes

Returns

the matching session, or None

Source
SessionEngine.scala

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product