-
Notifications
You must be signed in to change notification settings - Fork 88
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
#279 async service client #280
#279 async service client #280
Conversation
I fixed the tests, but now travis is failing with:
I will see if I can raise the log threshold for some frameworks like CXF or kafka to workaround this problem but already maven downloads seem 20% of the log. |
Working now, but still some open issues:
|
For the first point, I found the answer here: You need to encode space as %20 (or leave it as space). Encoding it as |
...src/main/java/com/devonfw/module/httpclient/common/impl/rest/AsyncServiceHttpClientRest.java
Outdated
Show resolved
Hide resolved
...nt-rest/src/main/java/com/devonfw/module/httpclient/common/impl/rest/RestMethodMetadata.java
Outdated
Show resolved
Hide resolved
...-client-rest/src/main/java/com/devonfw/module/httpclient/common/impl/rest/RestParameter.java
Show resolved
Hide resolved
Any feedback on the two open issues about the API in my comment above from anyone? |
I think this might be a bug of the JDK. Did you even tried it with oracle or just openjdk or even adoptJdk?
I think CompletableFuture is very valuable for example for uploads. You cannot go for a synchronous call as of timeout issues during communication, but you actually want to wait until the upload is completed to process further on the client side. |
@maybeec Thank you for your feedback.
Thanks. So we will consider it for some future release after
Sorry, but I completely gave up with this for Eclipse or Oracle compiler. It is ultra complex, they have very few and very limited experts on this. They do not care much about your feedback unless you provide exact, minimal,automated tests and including a PhD thesis proving this is a bug ;) See here for all my experience and time I already wasted: Further, you might got mistaken. I stated that I named both methods Futher, as nobody dares to approve... Should I use admin permission to merge this PR? |
Got the point. I think |
Just to open options. Instead of this API:
It could work like this:
I desinged the current approach to avoid that users invoke the Another alternative is the general "switch parameters" poor-man solution:
As |
@maybeec thanks for approval. As we are approaching our release, I will merge this tomorrow. Feedback is still very welcome but only if you can give it quickly there are high chances we can respect them before our 2020.08 release. |
For the record: I changed the name of the starter so we can later implement #284 without breaking changes and sane naming. So with #284 I plan to introduce |
Implements #279