Class DocumentDeleteEmitter

java.lang.Object
ai.pipeline.connector.intake.pipedoc.streaming.DocumentDeleteEmitter

@ApplicationScoped public class DocumentDeleteEmitter extends Object
Publishes the intake layer's broadcast DocumentDeleted signal to Kafka. A logical-document delete (a connector detected the source row/file is gone) is emitted ONCE; interested parties (repo-service, search index, …) each consume it and handle their own delete.

Keyed by a deterministic UUID derived from doc_id so redeliveries land on the same partition and the apicurio protobuf serializer's UUID-key contract is satisfied.

  • Constructor Details

    • DocumentDeleteEmitter

      public DocumentDeleteEmitter()
  • Method Details

    • publish

      public io.smallrye.mutiny.Uni<Void> publish(ai.pipestream.repository.v1.DocumentDeleted event)
      Publish one delete broadcast. The returned Uni completes when the broker acks the record, so callers can confirm the message is out before acknowledging the delete to the connector.