cmccabe commented on pull request #11109:
URL: https://github.com/apache/kafka/pull/11109#issuecomment-885788949


   I don't see why we need this context object. The listener itself is the 
context object. It should be able to unregister itself by just calling 
`RaftClient#unregister(this)`
   
   You need a context object in non-object-oriented languages like C, where you 
can't call `Foo#bar(a, b)`, but you have to call `bar(Foo foo, a, b)` Since 
Java is object-oriented, the context is in `Foo` already, so no need for a 
helper object.


-- 
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: jira-unsubscr...@kafka.apache.org

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


Reply via email to