CdcSource

Trait CdcSource 

Source
pub trait CdcSource {
    type Error: Error + Send + Sync + 'static;

    // Required method
    fn next_batch(&mut self) -> Result<Option<Vec<CdcEvent>>, Self::Error>;
}
Expand description

Batch-oriented CDC source boundary.

Decision (Phase 1): batch-first boundary avoids forcing async/runtime choice into the crate.

Required Associated Types§

Source

type Error: Error + Send + Sync + 'static

Required Methods§

Source

fn next_batch(&mut self) -> Result<Option<Vec<CdcEvent>>, Self::Error>

Fetch the next batch of CDC events.

  • Ok(None) means “clean end” (source exhausted / stopped).
  • Ok(Some(batch)) yields a non-empty batch.

Implementors§