Interface Event


  • public interface Event
    Base interface for event sourcing events

    Each aggregate typically defines an interface that is the base interface for all of it's event classes. For example:

     @EventEntity(entity="io.taiji.example.banking.domain.Account")
       public interface AccountEvent extends Event {
       }
     
    and
      public class AccountDebitedEvent implements AccountEvent {
        private BigDecimal amount;
        private String transactionId;
        ...
      }