SessionSubscription

org.sigilaris.node.gossip.SessionSubscription
See theSessionSubscription companion class

Companion for SessionSubscription providing factory methods.

Attributes

Companion
class
Source
GossipIdentifiers.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
Source
Mirror.scala
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
Source
Mirror.scala

Value members

Concrete methods

def fromSet(values: Set[ChainTopic]): Either[String, SessionSubscription]

Creates a subscription from a set of chain-topic pairs.

Creates a subscription from a set of chain-topic pairs.

Value parameters

values

the chain-topic pairs to subscribe to

Attributes

Returns

the subscription, or an error if empty

Source
GossipIdentifiers.scala
def of(values: ChainTopic*): Either[String, SessionSubscription]

Creates a subscription from the given chain-topic pairs.

Creates a subscription from the given chain-topic pairs.

Value parameters

values

the chain-topic pairs to subscribe to

Attributes

Returns

the subscription, or an error if empty

Source
GossipIdentifiers.scala

Creates a subscription, throwing on invalid input.

Creates a subscription, throwing on invalid input.

Value parameters

values

the chain-topic pairs to subscribe to

Attributes

Returns

the subscription

Throws
IllegalArgumentException

if the values are empty

Source
GossipIdentifiers.scala

Givens