ControlIdempotencyKey

org.sigilaris.node.gossip.GossipSessionProtocol$package.ControlIdempotencyKey

Companion for ControlIdempotencyKey.

Attributes

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

Members list

Value members

Concrete methods

def parse(value: String): Either[ControlBatchRejected, ControlIdempotencyKey]

Parses and validates a control idempotency key.

Parses and validates a control idempotency key.

Value parameters

value

the raw string; must already be a lowercase canonical UUIDv4

Attributes

Returns

the validated key, or a control batch rejection

Source
GossipSessionProtocol.scala
def unsafe(value: String): ControlIdempotencyKey

Parses a key, throwing on invalid input.

Parses a key, throwing on invalid input.

Value parameters

value

the raw string

Attributes

Returns

the validated key

Throws
IllegalArgumentException

if the value is invalid

Source
GossipSessionProtocol.scala

Extensions

Extensions

extension (key: ControlIdempotencyKey)
def value: String

Attributes

Source
GossipSessionProtocol.scala