You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2022/04/12 03:45:51 UTC

[GitHub] [rocketmq-connect] odbozhou commented on issue #85: SourceTask 和 SinkTask API的优化建议

odbozhou commented on issue #85:
URL: https://github.com/apache/rocketmq-connect/issues/85#issuecomment-1095944099

   问题1:目前的想法是这样的,validate校验配置,init接受配置,然后start的时候传递上下文信息。这可能是站在熟悉connector的设想。的确在刚接触connector的情况下会有一些困扰,增加了学习成本。我任务适当的调整是可以减少一些困扰的。我的想法是,init和start还是有必要分开切必要的的,这样也比较好理解,init可以用来初始化上线文,配置, 然后再start拿到启动。validate可以作为抽象类中的可选实现而不是接口的必要实现,这样可能对实现着更加友好一些。
   问题2:现在的继承关系确实会产生你说的问题,有些实现不会用到,但必须有空实现。你有具体的一些的建议吗?


-- 
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: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org