Class JdbcDispatchSubscriber

java.lang.Object
ai.pipestream.module.pipelineprobe.pipelinecrawl.JdbcDispatchSubscriber

@ApplicationScoped public class JdbcDispatchSubscriber extends Object
Subscribes to the JDBC connector's streamCrawlStatus server-streaming RPC and hydrates a RunLedger from the per-event payload.

Three event types matter:

Other event types (COMPLETION, DELETE, sub-crawl progress with event_type=UNSPECIFIED) are ignored — they're informational for other consumers but don't affect the ledger.

The subscription runs in its own gRPC Context.CancellableContext so the orchestrator can cancel cleanly via JdbcDispatchSubscriber.Subscription.cancel() regardless of whether the connector has closed the stream.