[jax-rs-spec users] Drafts for Rx, NIO and SSE

From: Santiago Pericasgeertsen <>
Date: Mon, 12 Oct 2015 10:30:11 -0400

Dear Experts,

 My apologies for sending all these drafts in one shot, but I feel we need to start making progress quickly if we want to produce an EDR in a few months.

 The following pull request [1] includes proposals for Rx, NIO and SSE. Let me point you to the examples to get you started:

 (1) Rx: <>

 This is an extension to our Client API that integrates with the CompletableFuture API in JDK 8 (note that CompletionStage is a super type of CompletableFuture). The proposal is extensible and can use other APIs similar to CompletableFuture —see the optional parameter to the rx() method for that purpose. The spec will only mandate support for CompletableFuture, but implementations are free to provide support for other APIs, such as RxJava.

 (2) NIO: <> <>

 On the server side, the proposal follows the pattern set by StreamingOutput, but of course using lambdas this time around. As you know, Servlet already supports NIO, but with a completely different API.

 (3) SSE: <>

 Note that like in NIO, there are proposed extensions to both the Client and Server APIs for SSE.

 I understand that this is a lot to digest, so feel free to start new e-mail threads to discuss each one independently. I just felt it was important to start all these discussions ASAP.

— Santiago

[1] <>