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 aStoredEvent
back 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 newStoredEvent
representing the givenDomainEvent
to the event store.void
EventStoringSubscriber.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 theevent
record component.Methods in com.reallifedeveloper.common.application.notification with parameters of type DomainEventModifier and TypeMethodDescriptionstatic Notification
Notification.create
(DomainEvent event, Long storedEventId) A factory method that sets theeventType
to the name of the event class andoccurredOn
to 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 TypeInterfaceDescriptioninterface
DomainEventSubscriber<T extends DomainEvent>
A handler of domain events.Classes in com.reallifedeveloper.common.domain.event that implement DomainEventModifier and TypeClassDescriptionclass
An 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 TypeMethodDescriptionvoid
EventSavingSubscriber.handleEvent
(DomainEvent event) void
LoggingDomainEventSubscriber.handleEvent
(DomainEvent event) void
DomainEventPublisher.publish
(DomainEvent event) Publishes a domain event, i.e., notifies each registered subscriber about the event.void
SimpleDomainEventPublisher.publish
(DomainEvent event) Publishes a domain event, i.e., calls theDomainEventSubscriber.handleEvent(DomainEvent)
method for each registered subscriber.void
ThreadLocalDomainEventPublisher.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 TypeMethodDescriptionvoid
DomainEventPublisher.subscribe
(DomainEventSubscriber<? extends DomainEvent> subscriber) Registers an event handler with this publisher.void
SimpleDomainEventPublisher.subscribe
(DomainEventSubscriber<? extends DomainEvent> subscriber) Registers an event handler with this publisher.void
ThreadLocalDomainEventPublisher.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 newSimpleDomainEventPublisher
with a number of subscribers registered to be notified when events are published.