EventData

sec.EventData$
See theEventData companion class
object EventData

Attributes

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

Members list

Concise view

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
Source:
Mirror.scala

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
Source:
Mirror.scala

Value members

Concrete methods

def apply(eventType: EventType, eventId: UUID, data: ByteVector, contentType: ContentType): EventData

Constructor for EventData when metadata is not required.

Constructor for EventData when metadata is not required.

Attributes

contentType

the ContentType of encoded data and metadata.

data

a scodec.bits.ByteVector of encoded data.

eventId

unique identifier for the event.

eventType

the EventType for the event.

Source:
event.scala
def apply(eventType: String, eventId: UUID, data: ByteVector, contentType: ContentType): Either[InvalidInput, EventData]

Constructor for EventData when the event type is a string and metadata is not required. Returns either InvalidInput or EventType.

Constructor for EventData when the event type is a string and metadata is not required. Returns either InvalidInput or EventType.

Attributes

contentType

the ContentType of encoded data and metadata.

data

a scodec.bits.ByteVector of encoded data.

eventId

unique identifier for the event.

eventType

string value for EventType.

Source:
event.scala
def apply(eventType: String, eventId: UUID, data: ByteVector, metadata: ByteVector, contentType: ContentType): Either[InvalidInput, EventData]

Constructor for EventData when the event type is a string.

Constructor for EventData when the event type is a string.

Attributes

contentType

the ContentType of encoded data and metadata.

data

a scodec.bits.ByteVector of encoded data.

eventId

unique identifier for the event.

eventType

string value for EventType.

metadata

a scodec.bits.ByteVector of encoded metadata.

Source:
event.scala