Package org.nuxeo.ecm.core.model.stream
Class DocumentDomainEventProducer
java.lang.Object
org.nuxeo.ecm.core.event.stream.DomainEventProducer
org.nuxeo.ecm.core.model.stream.DocumentDomainEventProducer
Propagate internal document events to a document DomainEvent stream.
- Since:
- 2021.44
-
Field Summary
Modifier and TypeFieldDescriptionprotected final Codec<DocumentDomainEvent>
protected static final String
protected static final org.apache.logging.log4j.Logger
protected static final String
Fields inherited from class org.nuxeo.ecm.core.event.stream.DomainEventProducer
name, stream
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Receives Nuxeo Core events from the synchronous listener DomainEventProducerListener.void
addEvent
(DocumentDomainEvent event) protected Record
buildRecordFromEvent
(String eventName, DocumentDomainEventContext ctx) Produces Domain Event Records from the accumulated Nuxeo Core events.Methods inherited from class org.nuxeo.ecm.core.event.stream.DomainEventProducer
getName, getStream
-
Field Details
-
log
protected static final org.apache.logging.log4j.Logger log -
CODEC_NAME
- See Also:
-
SOURCE_NAME
- See Also:
-
codec
-
records
-
-
Constructor Details
-
DocumentDomainEventProducer
-
-
Method Details
-
addEvent
Description copied from class:DomainEventProducer
Receives Nuxeo Core events from the synchronous listener DomainEventProducerListener.- Specified by:
addEvent
in classDomainEventProducer
-
addEvent
-
buildRecordFromEvent
-
getDomainEvents
Description copied from class:DomainEventProducer
Produces Domain Event Records from the accumulated Nuxeo Core events.- Specified by:
getDomainEvents
in classDomainEventProducer
-