Event

sec.Event
See theEvent companion object
sealed trait Event

A persisted event in EventStoreDB. There are two variants:

  • EventRecord An event in an event stream.
  • ResolvedEvent A special event that contains a link and a linked event record.

Attributes

Companion:
object
Source:
event.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Concise view

Value members

Concrete methods

def created: ZonedDateTime
Implicitly added by EventOps

The creation date of the event in java.time.ZonedDateTime.

The creation date of the event in java.time.ZonedDateTime.

Attributes

Source:
event.scala
Implicitly added by EventOps

The payload of the event.

The payload of the event.

Attributes

Source:
event.scala
def fold[A](f: EventRecord => A, g: ResolvedEvent => A): A
Implicitly added by EventOps

Attributes

Source:
event.scala
Implicitly added by EventOps

The position of the event in the global stream.

The position of the event in the global stream.

Attributes

Source:
event.scala
Implicitly added by EventOps

The actual event record of this event. There are two options. Either the record points to a normal event or a resolved event.

The actual event record of this event. There are two options. Either the record points to a normal event or a resolved event.

Attributes

Source:
event.scala
Implicitly added by EventOps

Attributes

Source:
event.scala
Implicitly added by EventOps

The stream identifier of the stream the event belongs to.

The stream identifier of the stream the event belongs to.

Attributes

Source:
event.scala
Implicitly added by EventOps

The stream position of the event in its stream.

The stream position of the event in its stream.

Attributes

Source:
event.scala

Concrete fields

val e: Event
Implicitly added by EventOps

Attributes

Source:
event.scala