Package org.nuxeo.ecm.core.event.stream
Class DomainEventProducer
java.lang.Object
org.nuxeo.ecm.core.event.stream.DomainEventProducer
- Direct Known Subclasses:
AuditDomainEventProducer
,BlobDomainEventProducer
,DocumentDomainEventProducer
,IndexingDomainEventProducer
Collects Core Events and produces Domain Event Records.
- Since:
- 11.4
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract void
Receives Nuxeo Core events from the synchronous listener DomainEventProducerListener.Produces Domain Event Records from the accumulated Nuxeo Core events.getName()
The name of the domain event.maxPerPartition
(List<LogOffset> offsets) Helper that returns the higher offsets per partitions.void
postCommitHook
(List<LogOffset> offsets) This hook is called once the records have been produced downstream, providing the list of produced record offsets.
-
Field Details
-
name
-
stream
-
-
Constructor Details
-
DomainEventProducer
-
-
Method Details
-
getName
The name of the domain event. -
getStream
-
addEvent
Receives Nuxeo Core events from the synchronous listener DomainEventProducerListener. -
getDomainEvents
Produces Domain Event Records from the accumulated Nuxeo Core events. -
postCommitHook
This hook is called once the records have been produced downstream, providing the list of produced record offsets.- Since:
- 2025.0
-
maxPerPartition
Helper that returns the higher offsets per partitions.- Since:
- 2025.0
-