Class DomainEventProducer

    • Field Detail

      • name

        protected final String name
      • stream

        protected final String stream
    • Constructor Detail

      • DomainEventProducer

        public DomainEventProducer​(String name,
                                   String stream)
    • Method Detail

      • getName

        public String getName()
        The name of the domain event.
      • getStream

        public String getStream()
      • addEvent

        public abstract void addEvent​(Event event)
        Receives Nuxeo Core events from the synchronous listener DomainEventProducerListener.
      • getDomainEvents

        public abstract List<Record> getDomainEvents()
        Produces Domain Event Records from the accumulated Nuxeo Core events.