Uses of Interface
com.reallifedeveloper.common.domain.event.DomainEvent
Packages that use DomainEvent
Package
Description
An implementation of an event store, i.e., a way to persist domain events.
Code to notify other systems about domain events that have occurred in this system and that have
been saved in an
EventStore.Support classes and interfaces for publishing and handling domain events.
-
Uses of DomainEvent in com.reallifedeveloper.common.application.eventstore
Methods in com.reallifedeveloper.common.application.eventstore with type parameters of type DomainEventModifier and TypeMethodDescription<T extends DomainEvent>
TEventStore.toDomainEvent(StoredEvent storedEvent) Converts aStoredEventback to its originalDomainEvent.Methods in com.reallifedeveloper.common.application.eventstore that return types with arguments of type DomainEventModifier and TypeMethodDescriptionClass<? extends DomainEvent>EventStoringSubscriber.eventType()Methods in com.reallifedeveloper.common.application.eventstore with parameters of type DomainEventModifier and TypeMethodDescriptionEventStore.add(DomainEvent event) Adds a newStoredEventrepresenting the givenDomainEventto the event store.voidEventStoringSubscriber.handleEvent(DomainEvent event) -
Uses of DomainEvent in com.reallifedeveloper.common.application.notification
Methods in com.reallifedeveloper.common.application.notification that return DomainEventModifier and TypeMethodDescriptionNotification.event()Returns the value of theeventrecord component.Methods in com.reallifedeveloper.common.application.notification with parameters of type DomainEventModifier and TypeMethodDescriptionstatic NotificationNotification.create(DomainEvent event, Long storedEventId) A factory method that sets theeventTypeto the name of the event class andoccurredOnto the date and time when the event occurred.Constructors in com.reallifedeveloper.common.application.notification with parameters of type DomainEventModifierConstructorDescriptionNotification(@Nullable String eventType, Long storedEventId, @Nullable ZonedDateTime occurredOn, DomainEvent event) Creates a newNotification. -
Uses of DomainEvent in com.reallifedeveloper.common.domain.event
Classes in com.reallifedeveloper.common.domain.event with type parameters of type DomainEventModifier and TypeInterfaceDescriptioninterfaceDomainEventSubscriber<T extends DomainEvent>A handler of domain events.Classes in com.reallifedeveloper.common.domain.event that implement DomainEventModifier and TypeClassDescriptionclassAn abstract base class for domain events.Methods in com.reallifedeveloper.common.domain.event that return types with arguments of type DomainEventModifier and TypeMethodDescriptionEventSavingSubscriber.events()Gives an unmodifiable list of the events that have been handled so far.Class<? extends DomainEvent>EventSavingSubscriber.eventType()Class<? extends DomainEvent>LoggingDomainEventSubscriber.eventType()Methods in com.reallifedeveloper.common.domain.event with parameters of type DomainEventModifier and TypeMethodDescriptionvoidEventSavingSubscriber.handleEvent(DomainEvent event) voidLoggingDomainEventSubscriber.handleEvent(DomainEvent event) voidDomainEventPublisher.publish(DomainEvent event) Publishes a domain event, i.e., notifies each registered subscriber about the event.voidSimpleDomainEventPublisher.publish(DomainEvent event) Publishes a domain event, i.e., calls theDomainEventSubscriber.handleEvent(DomainEvent)method for each registered subscriber.voidThreadLocalDomainEventPublisher.publish(DomainEvent event) Publishes a domain event, i.e., calls theDomainEventSubscriber.handleEvent(DomainEvent)method for each registered subscriber.Method parameters in com.reallifedeveloper.common.domain.event with type arguments of type DomainEventModifier and TypeMethodDescriptionvoidDomainEventPublisher.subscribe(DomainEventSubscriber<? extends DomainEvent> subscriber) Registers an event handler with this publisher.voidSimpleDomainEventPublisher.subscribe(DomainEventSubscriber<? extends DomainEvent> subscriber) Registers an event handler with this publisher.voidThreadLocalDomainEventPublisher.subscribe(DomainEventSubscriber<? extends DomainEvent> subscriber) Registers an event handler with this publisher.Constructor parameters in com.reallifedeveloper.common.domain.event with type arguments of type DomainEventModifierConstructorDescriptionSimpleDomainEventPublisher(List<DomainEventSubscriber<? extends DomainEvent>> subscribers) Creates a newSimpleDomainEventPublisherwith a number of subscribers registered to be notified when events are published.