Class DocumentDeleteEmitter
java.lang.Object
ai.pipestream.connector.intake.pipedoc.streaming.DocumentDeleteEmitter
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 Summary
Constructors -
Method Summary
-
Constructor Details
-
DocumentDeleteEmitter
public DocumentDeleteEmitter()
-
-
Method Details
-
publish
Publish one delete broadcast. The returnedUnicompletes when the broker acks the record, so callers can confirm the message is out before acknowledging the delete to the connector.Stamps
sent_at(if unset) so consumers can apply the out-of-order / stale-delete guard — a delete whosesent_atpredates a doc's latest re-index is skipped, so a late delete can't nuke a re-created doc.
-