DirectionalSession

org.sigilaris.node.gossip.DirectionalSession
final case class DirectionalSession(sessionId: DirectionalSessionId, direction: SessionDirection, peer: PeerIdentity, peerCorrelationId: PeerCorrelationId, proposal: SessionOpenProposal, negotiated: Option[NegotiatedSessionParameters], status: DirectionalSessionStatus, createdAt: Instant, openedAt: Option[Instant], lastActivityAt: Instant)

State of a single directional gossip session.

Value parameters

createdAt

when this session was created

direction

whether this session is outbound or inbound

lastActivityAt

the most recent activity timestamp

negotiated

the negotiated parameters (present after handshake completes)

openedAt

when this session became open (if applicable)

peer

the remote peer

peerCorrelationId

the peer correlation id

proposal

the original session open proposal

sessionId

the unique directional session identifier

status

the current lifecycle status

Attributes

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

def isAlive: Boolean

Attributes

Returns

true if the session is in Opening or Open status

Source
SessionEngine.scala

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product