Interface Event

    • Method Detail

      • getEventId

        @NotNull
        @NotNull EventId getEventId()
        Returns the identifier of the event.
        Returns:
        Unique identifier event.
      • getEventType

        @NotNull
        @NotNull EventType getEventType()
        Returns the type of the event (What happened).
        Returns:
        A text unique for all events of an aggregate.
      • getEventTimestamp

        @NotNull
        @NotNull ZonedDateTime getEventTimestamp()
        Date, time and time zone the event was created.
        Returns:
        Event creation date and time.
      • getCorrelationId

        @Nullable
        EventId getCorrelationId()
        Correlation identifier.
        Returns:
        Context of the event.
      • getCausationId

        @Nullable
        EventId getCausationId()
        Causation identifier.
        Returns:
        Identifier of the evtn that caused this one.