Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/config/kafka.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ pub struct TopicConfig {
/// Falls back to the global `kafka_auto_offset_reset` when unset.
#[serde(default)]
pub auto_offset_reset: Option<String>,
/// The topic-specific maximum number of processing records that can be
/// in the ActivationStore.
#[serde(default)]
pub max_processing_activations: Option<usize>,
/// The topic-specific maximum number of pending activations that can be
/// in the ActivationStore.
#[serde(default)]
pub max_pending_activations: Option<usize>,
}

/// Configuration for a Kafka cluster.
Expand Down
6 changes: 6 additions & 0 deletions src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,8 @@ impl Config {
session_timeout_ms: None,
auto_commit_interval_ms: None,
auto_offset_reset: None,
max_processing_activations: None,
max_pending_activations: None,
},
);
assert!(prev.is_none(), "internal: duplicate topic '{topic_name}'");
Expand All @@ -643,6 +645,8 @@ impl Config {
session_timeout_ms: None,
auto_commit_interval_ms: None,
auto_offset_reset: None,
max_processing_activations: None,
max_pending_activations: None,
},
);
if prev.is_some() {
Expand Down Expand Up @@ -675,6 +679,8 @@ impl Config {
session_timeout_ms: None,
auto_commit_interval_ms: None,
auto_offset_reset: None,
max_processing_activations: None,
max_pending_activations: None,
});
}
}
Expand Down
Loading
Loading