[ 
https://issues.apache.org/jira/browse/FLINK-18780?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17182941#comment-17182941
 ] 

Jiangjie Qin commented on FLINK-18780:
--------------------------------------

It is a little unfortunate that `FlinkKafkaProducer` has 11 public constructors 
among which 5 are deprecated and 6 are still maintained. To be honest I'd 
prefer a builder pattern to adding more constructors to it. For existing users, 
one may just call:

FlinkKafkaProducer(String, SerializationSchema<IN>, Properties, null, Semantic, 
DEFAULT_KAFKA_PRODUCERS_POOL_SIZE).

> FlinkKafkaProducer should add another constructor accepting 
> SerializationSchema
> -------------------------------------------------------------------------------
>
>                 Key: FLINK-18780
>                 URL: https://issues.apache.org/jira/browse/FLINK-18780
>             Project: Flink
>          Issue Type: New Feature
>          Components: Connectors / Kafka
>    Affects Versions: 1.11.0, 1.11.1
>            Reporter: Qingsheng Ren
>            Priority: Major
>
> Currently `FlinkKafkaProducer` doesn't have a constructor like
> `FlinkKafkaProducer(String, SerializationSchema<IN>, Properties, Semantic)`
> This is used as an example in Kafka DataStream Connector's documentation. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to