hw-kafka-client-2.3.1: Kafka bindings for Haskell

Safe HaskellNone
LanguageHaskell2010

Kafka.Producer.ProducerProperties

Synopsis

Documentation

data ProducerProperties Source #

Properties to create KafkaProducer.

Instances

setCallback :: (KafkaConf -> IO ()) -> ProducerProperties Source #

logLevel :: KafkaLogLevel -> ProducerProperties Source #

Sets the logging level. Usually is used with debugOptions to configure which logs are needed.

extraProps :: Map String String -> ProducerProperties Source #

Any configuration options that are supported by librdkafka. The full list can be found here

suppressDisconnectLogs :: ProducerProperties Source #

Suppresses producer disconnects logs.

It might be useful to turn this off when interacting with brokers with an aggressive connection.max.idle.ms value.

extraTopicProps :: Map String String -> ProducerProperties Source #

Any configuration options that are supported by librdkafka. The full list can be found here

debugOptions :: [KafkaDebug] -> ProducerProperties Source #

Sets debug features for the producer Usually is used with logLevel.

deliveryErrorsCallback :: (KafkaError -> IO ()) -> KafkaConf -> IO () Source #

Sets the callback for delivery errors. The callback is only called in case of errors.