users@jax-rs-spec.java.net

[jax-rs-spec users] Passing an executor

From: Adam Bien <abien_at_adam-bien.com>
Date: Fri, 29 Jan 2016 06:08:15 +0100

Hi EGs,

For asynchronous server-server communication we need a possibility to pass the ExecutorService (from concurrency utilities) to the JAX-RS client. All threads should be managed and monitored by the application server.
IMO there should be a standard way to pass the ExecutorService to the JAX-RS client during the construction as well as an optional parameter to the asynchronous methods.

See e.g. https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html and particularly the async methods.

Any thoughts?

thank you for the great work so far,

—adam