I agree. When I was hacking with the 2.1 snapshot API for the Java
Magazine article last summer I found the reactive client changes with
rx() easy and straightforward to use -- both with CompletionStage or any
other type if people want. I wouldn't restrict here -- this is low
hanging fruit and appreciated by users if they can avoid to wrap the call.
Cheers,
Sebastian
On 01/12/2017 07:02 PM, Santiago Pericasgeertsen wrote:
>
>> On Jan 12, 2017, at 12:56 PM, Sergey Beryozkin <sberyozkin_at_talend.com
>> <mailto:sberyozkin_at_talend.com>> wrote:
>>
>> Java 10 ? JAX-RS 2.1 is Java 8 based, and RxJava is highly popular so
>> voluntarily restricting 2.1. to CompletableStage only would be a mistake…
>
> +1
>
> — Santiago
>
>> On 12/01/17 17:10, Markus KARG wrote:
>>> The question is whether we actually want the ability to support
>>> other reactive implementations, or whether we decide to stick with
>>> CompletableStage? The rx intermediate method makes the API more
>>> complex for anybody. On the other hand, Java 10 possibly will
>>> provide a "real" reactive API for everyone, and we cannot natively
>>> support it, but enforce people to use rx() still, which is tedious.
>>> I cannot remember that the EG actually agreed upon a final answer of
>>> this dilemma.
>>>
>>> *From:* Santiago Pericasgeertsen
>>> [mailto:santiago.pericasgeertsen_at_oracle.com]
>>> *Sent:* Donnerstag, 12. Januar 2017 16:00
>>> *To:* jsr370-experts_at_jax-rs-spec.java.net
>>> *Subject:* Re: [jax-rs-spec users] JAX-RS 2.1 - work schedule
>>>
>>>
>>>
>>> On Jan 11, 2017, at 4:17 PM, Pavel Bucek <pavel.bucek_at_oracle.com
>>> <mailto:pavel.bucek_at_oracle.com>> wrote:
>>>
>>> So what's going to happen next? We are currently working in PoC
>>> implementation of Reactive client API which is currently in the
>>> JAX-RS source repository master branch - it is almost ready for
>>> review. We identified small improvement needed there and I'm
>>> going to take care of that, finish the PoC implementation and
>>> document the API on the wiki. Once this is done, I'll send a
>>> request for review to this mailing list.
>>>
>>>
>>> Just a quick reminder that the crux of the RX work is the addition
>>> of new rx() methods to Invocation, with default support for
>>> CompletionStage and an extension point to plug in other reactive
>>> implementations via the RxInvoker type [1].
>>>
>>> — Santiago
>>>
>>> [1] https://java.net/projects/jax-rs-spec/sources/api/content/jaxrs-api/src/main/java/javax/ws/rs/client/Invocation.java
>>>
>>
>>
>>
>