Struct feldera_types::transport::kafka::KafkaInputConfig
source · pub struct KafkaInputConfig {
pub kafka_options: BTreeMap<String, String>,
pub topics: Vec<String>,
pub log_level: Option<KafkaLogLevel>,
pub group_join_timeout_secs: u32,
pub fault_tolerance: Option<KafkaInputFtConfig>,
pub kafka_service: Option<String>,
pub poller_threads: Option<usize>,
}Expand description
Configuration for reading data from Kafka topics with InputTransport.
Fields§
§kafka_options: BTreeMap<String, String>Options passed directly to rdkafka.
librdkafka options
used to configure the Kafka consumer. Not all options are valid with
this Kafka adapter:
- “enable.auto.commit”, if present, must be set to “false”,
- “enable.auto.offset.store”, if present, must be set to “false”
topics: Vec<String>List of topics to subscribe to.
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.
group_join_timeout_secs: u32Maximum timeout in seconds to wait for the endpoint to join the Kafka consumer group during initialization.
fault_tolerance: Option<KafkaInputFtConfig>If specified, this enables fault tolerance in the Kafka input connector.
kafka_service: Option<String>If specified, this service is used to provide defaults for the Kafka options.
poller_threads: Option<usize>Set to 1 or more to fix the number of threads used to poll
rdkafka. Multiple threads can increase performance with small Kafka
messages; for large messages, one thread is enough. In either case, too
many threads can harm performance. If unset, the default is 3, which
helps with small messages but will not harm performance with large
messagee
Implementations§
Trait Implementations§
source§impl Clone for KafkaInputConfig
impl Clone for KafkaInputConfig
source§fn clone(&self) -> KafkaInputConfig
fn clone(&self) -> KafkaInputConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for KafkaInputConfig
impl Debug for KafkaInputConfig
source§impl<'de> Deserialize<'de> for KafkaInputConfig
impl<'de> Deserialize<'de> for KafkaInputConfig
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 KafkaInputConfig
impl PartialEq for KafkaInputConfig
source§impl Serialize for KafkaInputConfig
impl Serialize for KafkaInputConfig
source§impl<'__s> ToSchema<'__s> for KafkaInputConfig
impl<'__s> ToSchema<'__s> for KafkaInputConfig
impl Eq for KafkaInputConfig
impl StructuralPartialEq for KafkaInputConfig
Auto Trait Implementations§
impl Freeze for KafkaInputConfig
impl RefUnwindSafe for KafkaInputConfig
impl Send for KafkaInputConfig
impl Sync for KafkaInputConfig
impl Unpin for KafkaInputConfig
impl UnwindSafe for KafkaInputConfig
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.