-
Notifications
You must be signed in to change notification settings - Fork 30
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
Add utility methods for startLRA and joinLRA not containing timeout parameters #44
Comments
A side note a LRAManagement interface already contains such utility method without timeout for the |
I think we should remove joinLRA from the LRAClient api then |
@tomjenkinson sorry I don't understand what you mean, joinLRA in LRAClient is required for programmatic API. To the original question, I think the added complexity which would be introduced by these usability methods can be removed by default implementations in the LRAClient interface and the benefit for the end users can be very valuable as timeouts are just not necessary every time. I also checked other MP specifications and there is no similar example of such extensive interface, but if you prefer we can still take this conversation to the MP mailing list. |
Tjos sounds as a good idea to me. It's a pleasant UX benefit. |
Note that we should be encouraging the use of annotations over the programmatic API. |
I think encouraging annotations has nothing in common with fact to make our API nice to use. |
Adding too many utility methods just makes the interface noisy, but if that's what people want. |
I would argue it's usual way to make the AP not noisy but easier to use. It's way to help the user. But I agree this could be matter of taste. You can check e.g. java APIs |
+1 @xstefank it looks like you have a +3 on this issue which is enough to go ahead with a PR (and we don't need to go to the MP mailing list). |
…imeout parameters issue microprofile#44 Signed-off-by: xstefank <[email protected]>
…imeout parameters issue microprofile#44 Signed-off-by: xstefank <[email protected]>
Posting this as a question to the community. There is an idea to add overloaded variants of
startLRA
andjoinLRA
methods that do not contain timelimit and time unit parameters that would mean that by the default no timeout should be used. Such methods can help with repetitive unnecessary attributes in the user code, but on the other hand will make the client API more complex. There is a reasonable trade-off so we would like to ask for the opinion in the community.The text was updated successfully, but these errors were encountered: