- All Superinterfaces:
Serializable
- All Known Subinterfaces:
DomainEvent<ID>
- All Known Implementing Classes:
AbstractDomainEvent,AbstractEvent
Something that happened in the system.
-
Method Summary
Modifier and TypeMethodDescriptionCausation identifier.Correlation identifier.@NotNull EventIdReturns the identifier of the event.@NotNull ZonedDateTimeDate, time and time zone the event was created.@NotNull EventTypeReturns the type of the event (What happened).
-
Method Details
-
getEventId
Returns the identifier of the event.- Returns:
- Unique identifier event.
-
getEventType
Returns the type of the event (What happened).- Returns:
- A text unique for all events of an aggregate.
-
getEventTimestamp
Date, time and time zone the event was created.- Returns:
- Event creation date and time.
-
getCorrelationId
Correlation identifier.- Returns:
- Context of the event.
-
getCausationId
Causation identifier.- Returns:
- Identifier of the evtn that caused this one.
-