
com.networknt.kafka.common.Event Maven / Gradle / Ivy
package com.networknt.kafka.common;
/**
* 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;
* ...
* }
*
*/
public interface Event {
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy