CompositeCursor

org.sigilaris.node.gossip.CompositeCursor
See theCompositeCursor companion object
final case class CompositeCursor(values: Map[ChainTopic, CursorToken])

A cursor that holds per-chain-topic cursor tokens for multiplexed session streaming.

Value parameters

values

the mapping of chain-topic pairs to their cursor tokens

Attributes

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

Members list

Value members

Concrete methods

def isEmpty: Boolean

Attributes

Returns

true if this cursor contains no entries

Source
GossipCursorModel.scala
def isOriginReplay(chainTopic: ChainTopic): Boolean

Checks whether no cursor exists for the given chain-topic, indicating a full replay from origin.

Checks whether no cursor exists for the given chain-topic, indicating a full replay from origin.

Value parameters

chainTopic

the chain-topic pair

Attributes

Returns

true if no cursor is stored

Source
GossipCursorModel.scala
def tokenFor(chainTopic: ChainTopic): Option[CursorToken]

Returns the cursor token for the given chain-topic pair, if present.

Returns the cursor token for the given chain-topic pair, if present.

Value parameters

chainTopic

the chain-topic pair

Attributes

Returns

the cursor token, or None

Source
GossipCursorModel.scala
def tokenForChainAndTopic(chainId: ChainId, topic: GossipTopic): Option[CursorToken]

Returns the cursor token for the given chain id and topic, if present.

Returns the cursor token for the given chain id and topic, if present.

Value parameters

chainId

the chain identifier

topic

the gossip topic

Attributes

Returns

the cursor token, or None

Source
GossipCursorModel.scala

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product