Class AvroDomainEventBuilder<BuilderType extends AvroDomainEventBuilder,EventType extends AvroDomainEvent>

java.lang.Object
ch.admin.bit.jeap.messaging.avro.AvroMessageBuilder<BuilderType,EventType>
ch.admin.bit.jeap.domainevent.avro.AvroDomainEventBuilder<BuilderType,EventType>

public abstract class AvroDomainEventBuilder<BuilderType extends AvroDomainEventBuilder,EventType extends AvroDomainEvent> extends AvroMessageBuilder<BuilderType,EventType>
  • Constructor Details

    • AvroDomainEventBuilder

      protected AvroDomainEventBuilder(Supplier<EventType> constructor)
  • Method Details

    • getEventVersion

      @Deprecated(forRemoval=true, since="3.7.0") protected String getEventVersion()
      Deprecated, for removal: This API element is subject to removal in a future version.
      When generating jEAP messages from the message type registry, the version is automatically set
      Version of the event type to create. Not to be confused with DOMAIN_EVENT_VERSION which is the Version of the DomainEvent-Structure. The builder uses the event version from the generated event avro binding, no need to override. Will be removed in a future release.
    • user

      public BuilderType user(AvroDomainEventUser user)
    • build

      public EventType build()