Skip to content

Conversation

@duhenglucky
Copy link
Member

(1) Add extension attributes & interface.
(2) Keep consistent with specification.

int getShort(String key);
short getShort(String key);

/**

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 :

  1. Return the wrapper class instead a primitive data type.
  2. Return a null value if the provided key is not found.

Short getShort(String key);

Copy link
Member Author

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?

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 {

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.

Copy link
Member Author

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?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aggree that.

@duhenglucky duhenglucky merged commit 400f5ac into openmessaging:master Feb 28, 2019
@duhenglucky duhenglucky added this to the 1.0.0-alpha milestone Feb 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants