-
Notifications
You must be signed in to change notification settings - Fork 223
[ISSUE33]Add extension Attributes & Interface #34
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
Conversation
| int getShort(String key); | ||
| short getShort(String key); | ||
|
|
||
| /** |
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 getters with a numeric return type, my suggestion is :
- Return the wrapper class instead a primitive data type.
- Return a null value if the provided key is not found.
Short getShort(String key);
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.
It seems that we should define so many interface or 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.
No need, just repliace the method "short getShort(String key);" to "Short getShort(String key);"
| * @version OMS 1.0.0 | ||
| * @since OMS 1.0.0 | ||
| */ | ||
| public interface ExtensionClient { |
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.
Is there any way to get a instance for the new added interface io.openmessaging.extension.ExtensionClient.
There should be a getExcensionCleint method in the MessagingAccessPoint or other interfaces.
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.
yep, I also think it should be a method which can be found in Producer or Consumer. what's your opinion?
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.
Aggree that.
(1) Add extension attributes & interface.
(2) Keep consistent with specification.