-
Notifications
You must be signed in to change notification settings - Fork 11.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ISSUE #6644] Add admin client future interface #6646
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #6646 +/- ##
==============================================
+ Coverage 0 42.97% +42.97%
- Complexity 0 8999 +8999
==============================================
Files 0 1109 +1109
Lines 0 78543 +78543
Branches 0 10215 +10215
==============================================
+ Hits 0 33755 +33755
- Misses 0 40560 +40560
- Partials 0 4228 +4228
... and 1106 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
import org.apache.rocketmq.remoting.protocol.heartbeat.SubscriptionData; | ||
import org.apache.rocketmq.remoting.protocol.subscription.SubscriptionGroupConfig; | ||
|
||
public class MqClientAdminImpl { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For keep admin tools code clean, you could:
- add async interface method in MQAdminExt and move DefaultMQAdminExtImpl async method to DefaultMQAdminExtImpl
- refactor DefaultMQAdminExtImpl blocking method based on async method
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DefaultMQAdminExtImpl is the upper level of MqClientAdminImpl, in fact, the corresponding class to MqClientAdminImpl is MQClientAPIImpl which is almost all sync admin methods.
However, this class is about 3000 lines, and it's too long to add new methods, so I think composition is a good idea.
For interface, It's reasonable to add an interface for this async admin
remoting/src/main/java/org/apache/rocketmq/remoting/RemotingClient.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What is the purpose of the change
close #6644
Brief changelog
Add future interface for admin methods