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

Value members

Concrete methods

def created: ZonedDateTime
Extension method from Event

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

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

Attributes

Source
event.scala
Extension method from Event

The payload of the event.

The payload of the event.

Attributes

Source
event.scala
def fold[A](f: EventRecord => A, g: ResolvedEvent => A): A
Extension method from Event

Attributes

Source
event.scala
Extension method from Event

The position of the event in the global stream.

The position of the event in the global stream.

Attributes

Source
event.scala
Extension method from Event

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
def render: String
Extension method from Event

Attributes

Source
event.scala
Extension method from Event

The stream identifier of the stream the event belongs to.

The stream identifier of the stream the event belongs to.

Attributes

Source
event.scala
Extension method from Event

The stream position of the event in its stream.

The stream position of the event in its stream.

Attributes

Source
event.scala