Skip to main content

Module batch

Module batch 

Source
Expand description

Batch resequencing policy — buffer per correlation key, window completion, sort by expression, burst-emit in order.

Structs§

BatchPolicy
Batch resequencing policy.

Constants§

DEFAULT_MAX_BUCKETS
Default upper bound on simultaneously open correlation buckets (audit 2026-08-31, F6-1). Mirrors the aggregator’s max_buckets default (camel-api aggregator.rs:209). New keys beyond the cap are dropped.
DEFAULT_MAX_BUCKET_SIZE
Default upper bound on buffered exchanges inside ONE bucket (F6-1). A hot correlation key can otherwise buffer unboundedly until completion fires. Exchanges beyond the cap are dropped (fail-visible: warn + ack drop, same class as the resequencer’s post-ack drop semantics in ADR-0029).
DEFAULT_MAX_TIMEOUT_TASKS
Default upper bound on live timeout tasks (F6-1). Mirrors the aggregator’s max_timeout_tasks default (camel-api aggregator.rs:214). When the cap is reached, new buckets still buffer but get no per-key timer — their completion then relies on size or shutdown flush.