Struct feldera_types::transport::kafka::KafkaOutputConfig
source · pub struct KafkaOutputConfig {
pub kafka_options: BTreeMap<String, String>,
pub topic: String,
pub headers: Vec<KafkaHeader>,
pub log_level: Option<KafkaLogLevel>,
pub max_inflight_messages: u32,
pub initialization_timeout_secs: u32,
pub fault_tolerance: Option<KafkaOutputFtConfig>,
pub kafka_service: Option<String>,
}Expand description
Configuration for writing data to a Kafka topic with OutputTransport.
Fields§
§kafka_options: BTreeMap<String, String>Options passed directly to rdkafka.
See librdkafka options
used to configure the Kafka producer.
topic: StringTopic to write to.
headers: Vec<KafkaHeader>Kafka headers to be added to each message produced by this connector.
log_level: Option<KafkaLogLevel>The log level of the client.
If not specified, the log level will be calculated based on the global
log level of the log crate.
max_inflight_messages: u32Maximum number of unacknowledged messages buffered by the Kafka producer.
Kafka producer buffers outgoing messages until it receives an acknowledgement from the broker. This configuration parameter bounds the number of unacknowledged messages. When the number of unacknowledged messages reaches this limit, sending of a new message blocks until additional acknowledgements arrive from the broker.
Defaults to 1000.
initialization_timeout_secs: u32Maximum timeout in seconds to wait for the endpoint to connect to a Kafka broker.
Defaults to 60.
fault_tolerance: Option<KafkaOutputFtConfig>If specified, this enables fault tolerance in the Kafka output connector.
kafka_service: Option<String>If specified, this service is used to provide defaults for the Kafka options.
Implementations§
Trait Implementations§
source§impl Clone for KafkaOutputConfig
impl Clone for KafkaOutputConfig
source§fn clone(&self) -> KafkaOutputConfig
fn clone(&self) -> KafkaOutputConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for KafkaOutputConfig
impl Debug for KafkaOutputConfig
source§impl<'de> Deserialize<'de> for KafkaOutputConfig
impl<'de> Deserialize<'de> for KafkaOutputConfig
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl PartialEq for KafkaOutputConfig
impl PartialEq for KafkaOutputConfig
source§impl Serialize for KafkaOutputConfig
impl Serialize for KafkaOutputConfig
source§impl<'__s> ToSchema<'__s> for KafkaOutputConfig
impl<'__s> ToSchema<'__s> for KafkaOutputConfig
impl Eq for KafkaOutputConfig
impl StructuralPartialEq for KafkaOutputConfig
Auto Trait Implementations§
impl Freeze for KafkaOutputConfig
impl RefUnwindSafe for KafkaOutputConfig
impl Send for KafkaOutputConfig
impl Sync for KafkaOutputConfig
impl Unpin for KafkaOutputConfig
impl UnwindSafe for KafkaOutputConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.