Pil0tXia commented on code in PR #3867: URL: https://github.com/apache/eventmesh/pull/3867#discussion_r1576493947
########## eventmesh-storage-plugin/eventmesh-storage-kafka/src/main/java/org/apache/eventmesh/storage/kafka/producer/ProducerImpl.java: ########## @@ -42,36 +41,20 @@ @Slf4j @SuppressWarnings("deprecation") -public class ProducerImpl { +public class ProducerImpl extends AbstractProducer { private final KafkaProducer<String, CloudEvent> producer; - private final Properties properties = new Properties(); - private final AtomicBoolean isStarted = new AtomicBoolean(false); public ProducerImpl(Properties props) { + super(props); + properties.clear(); Review Comment: >it is quite evident that the latter is merely a delegate class, delegating all the specific details to former for actual processing I agree with your view. Since the abstraction has already been made, how about standardizing the usage of the abstract implementation? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@eventmesh.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@eventmesh.apache.org For additional commands, e-mail: issues-h...@eventmesh.apache.org