Package com.networknt.kafka.common
Interface Event
-
public interface EventBase interface for event sourcing eventsEach 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 { }andpublic class AccountDebitedEvent implements AccountEvent { private BigDecimal amount; private String transactionId; ... }