HandshakePolicy

org.sigilaris.node.gossip.HandshakePolicy
See theHandshakePolicy companion object
final case class HandshakePolicy(openingHandshakeTimeout: Duration, defaultHeartbeatInterval: Duration, defaultLivenessTimeout: Duration, defaultMaxControlRetryInterval: Duration, minHeartbeatInterval: Duration, maxHeartbeatInterval: Duration, minMaxControlRetryInterval: Duration, maxMaxControlRetryInterval: Duration)

Policy governing session handshake timing constraints and defaults.

Value parameters

defaultHeartbeatInterval

default heartbeat interval if not proposed

defaultLivenessTimeout

default liveness timeout if not proposed

defaultMaxControlRetryInterval

default max control retry interval if not proposed

maxHeartbeatInterval

maximum allowed heartbeat interval

maxMaxControlRetryInterval

maximum allowed max control retry interval

minHeartbeatInterval

minimum allowed heartbeat interval

minMaxControlRetryInterval

minimum allowed max control retry interval

openingHandshakeTimeout

timeout for completing the handshake

Attributes

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

Members list

Value members

Concrete methods

def validateControlRetryHorizon(retryHorizon: Duration, negotiated: NegotiatedSessionParameters): Either[ControlBatchRejected, Duration]

Validates that a control retry horizon falls within the allowed range.

Validates that a control retry horizon falls within the allowed range.

Value parameters

negotiated

the negotiated session parameters

retryHorizon

the proposed retry horizon

Attributes

Returns

the validated horizon, or a rejection

Source
GossipSessionProtocol.scala

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product