GossipTopicContract

org.sigilaris.node.gossip.GossipTopicContract

Contract defining validation and delivery rules for a specific gossip topic.

Type parameters

A

the artifact payload type

Attributes

Source
GossipSessionProtocol.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

Attributes

Returns

the gossip topic this contract governs

Source
GossipSessionProtocol.scala
def validateArtifact(event: GossipEvent[A]): Either[ArtifactContractRejected, Unit]

Validates an artifact event against this contract.

Validates an artifact event against this contract.

Value parameters

event

the event to validate

Attributes

Returns

unit on success, or a rejection

Source
GossipSessionProtocol.scala

Concrete methods

def deliveryPriority: Int

Attributes

Returns

delivery priority; higher values are delivered first

Source
GossipSessionProtocol.scala

Determines the exact known set scope for the given event, if applicable.

Determines the exact known set scope for the given event, if applicable.

Value parameters

event

the event to inspect

Attributes

Returns

the scope if the event belongs to an exact-known-set topic, or None

Source
GossipSessionProtocol.scala
def exactKnownSetLimit: Option[Int]

Attributes

Returns

optional limit on the size of exact known sets

Source
GossipSessionProtocol.scala

Returns the producer QoS settings for this contract, optionally overriding the default.

Returns the producer QoS settings for this contract, optionally overriding the default.

Value parameters

default

the default QoS settings

Attributes

Returns

the effective QoS settings

Source
GossipSessionProtocol.scala
def requestByIdLimit: Option[Int]

Attributes

Returns

optional limit on the number of request-by-id entries

Source
GossipSessionProtocol.scala