v2023.01.05
This release cooperates with librdkafka
v1.9.2
-
Namespace changes
kafka::clients::producer::KafkaProducer
(instead ofkafka::clients::KafkaProducer
)kafka::clients::consumer::KafkaConsumer
(instead ofkafka::clients::KafkaConsumer
)kafka::clients::admin::AdminClient
(instead ofkafka::clients::AdminClient
)
-
Legacy interface removed
- No
setLogger(...)
/setErrorCallback(...)
/setStatsCallback(...)
/setOauthbearerTokenRefreshCallback(...)
any more. - No
EventsPollingOption
parameter for Kafka client initialization. - No
Interceptor
parameter for Kafka client initialization.
- No
-
New
Properties
- It contains all configuration info to initialize a Kafka client. The property value type could be
std::string
: Most are from librdkafka configuration.std::function<...>
: Callbacks forlog_cb
,error_cb
,stats_cb
oroauthbearer_token_refresh_cb
.Interceptors
- New configuration property:
enable.manual.events.poll
.
- It contains all configuration info to initialize a Kafka client. The property value type could be
-
Default behavior changed
enable.auto.commit=true
forKafkaConsumer
by default