Interface ExportedEvent<I,​P>


  • @Incubating
    public interface ExportedEvent<I,​P>
    Describes an event that should be exported via the "outbox" table.
    Author:
    Chris Cranford
    • Method Detail

      • getAggregateId

        I getAggregateId()
        The id of the aggregate affected by a given event. For example, the order id in case of events relating to an order, or order lines of that order. This is used to ensure ordering of events within an aggregate type.
      • getAggregateType

        String getAggregateType()
        The type of the aggregate affected by the event. For example, "order" in case of events relating to an order, or order lines of that order. This is used as the topic name.
      • getType

        String getType()
        The type of an event. For example, "Order Created" or "Order Line Cancelled" for events that belong to an given aggregate type such as "order".
      • getTimestamp

        Instant getTimestamp()
        The timestamp at which the event occurred.
      • getPayload

        P getPayload()
        The event payload.
      • getAdditionalFieldValues

        default Map<String,​Object> getAdditionalFieldValues()
        The additional field values to be stored.