You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had searched in the issues and found no similar issues.
Question
In the org.apache.eventmesh.openconnect.SinkWorker#init(), just call org.apache.eventmesh.openconnect.api.connector.Connector#init(org.apache.eventmesh.openconnect.api.connector.ConnectorContext )(the second method framed below), then what is the role of the first method in the picture below.
I'm not very sure if my opinion is correct. I have encountered similar confusion in PR #4389 before, this is the community's response: #4389 (comment). From this response, I speculate that the community may not have planned when to use the method SinkWorker#init (Config).
@hhuang1231 At the beginning, there was only the first initialization method. However, as many connectors were developed, the ConnectorContext was later introduced. In my opinion, the second method was added for compatibility reasons. I suggest marking the first one as deprecated, and it could be removed in future versions. The current version can still maintain both methods.
@hhuang1231 At the beginning, there was only the first initialization method. However, as many connectors were developed, the ConnectorContext was later introduced. In my opinion, the second method was added for compatibility reasons. I suggest marking the first one as deprecated, and it could be removed in future versions. The current version can still maintain both methods.
Search before asking
Question
In the
org.apache.eventmesh.openconnect.SinkWorker#init()
, just callorg.apache.eventmesh.openconnect.api.connector.Connector#init(org.apache.eventmesh.openconnect.api.connector.ConnectorContext )
(the second method framed below), then what is the role of the first method in the picture below.在
org.apache.eventmesh.openconnect.SinkWorker#init()
方法中,只会调用org.apache.eventmesh.openconnect.api.connector.Connector#init(org.apache.eventmesh.openconnect.api.connector.ConnectorContext)
接口方法(如下图中框起来的第二个方法),那么下图中第一个方法是有什么作用。The text was updated successfully, but these errors were encountered: