jsr339-experts@jax-rs-spec.java.net

[jsr339-experts] Simplified Async Proposal

From: Markus KARG <markus_at_headcrashing.eu>
Date: Sat, 30 Jul 2011 11:16:00 +0200

I was asked to put my simplified async proposal in the wiki so experts can
better understand and discuss it.

So here it is:
http://java.net/projects/jax-rs-spec/pages/SimplifiedAsyncSupport

Please post comments in this mailing list. :-)

To sum up a few points from previous discussions:

* Broadcast and Pub/Sub is not part of the proposal, but should be simple to
implement ontop.

* No more need for polling or suspending, due to an updated attempt (using
Callable instead of Future).

* Should be the most simple to learn and apply for programmers, as there is
either nothing to learn (Callable) or just one annotation to add (@Async).

* Should be rather easy to implement for JAX-RS implementation vendors, but
opens a lot of possibilities for them like applying work stealing etc).

-Markus