-
- All Implemented Interfaces:
-
org.enodeframework.eventing.EventCommittingService
public final class DefaultEventCommittingService implements EventCommittingService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classDefaultEventCommittingService.EventAppendContextpublic classDefaultEventCommittingService.Companion
-
Constructor Summary
Constructors Constructor Description DefaultEventCommittingService(MemoryCache memoryCache, EventStore eventStore, SerializeService serializeService, MessagePublisher<DomainEventStream> domainEventPublisher)DefaultEventCommittingService(MemoryCache memoryCache, EventStore eventStore, SerializeService serializeService, MessagePublisher<DomainEventStream> domainEventPublisher, Integer eventMailBoxCount)
-
Method Summary
Modifier and Type Method Description UnitcommitDomainEventAsync(EventCommittingContext eventCommittingContext)Commit the given aggregate's domain events to the eventstore async and publish the domain events. CompletableFuture<Boolean>publishDomainEventAsync(ProcessingCommand processingCommand, DomainEventStream eventStream)Publish the given domain event stream async. -
-
Constructor Detail
-
DefaultEventCommittingService
DefaultEventCommittingService(MemoryCache memoryCache, EventStore eventStore, SerializeService serializeService, MessagePublisher<DomainEventStream> domainEventPublisher)
-
DefaultEventCommittingService
DefaultEventCommittingService(MemoryCache memoryCache, EventStore eventStore, SerializeService serializeService, MessagePublisher<DomainEventStream> domainEventPublisher, Integer eventMailBoxCount)
-
-
Method Detail
-
commitDomainEventAsync
Unit commitDomainEventAsync(EventCommittingContext eventCommittingContext)
Commit the given aggregate's domain events to the eventstore async and publish the domain events.
-
publishDomainEventAsync
CompletableFuture<Boolean> publishDomainEventAsync(ProcessingCommand processingCommand, DomainEventStream eventStream)
Publish the given domain event stream async.
-
-
-
-