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

[jsr339-experts] Re: [jax-rs-spec users] unclear about ExecutionContext

From: Marek Potociar <marek.potociar_at_oracle.com>
Date: Mon, 18 Jun 2012 23:04:47 +0200

On Jun 18, 2012, at 5:01 PM, Bill Burke wrote:

> I'm unclear what the difference between:
>
> resume(Object)

resume a suspended context.

>
> vs.
>
> setResponse/getResponse

get/set the default "fallback" (read timeout) response.

Marek

>
> Why do you need setResponse if there is a resume (or vice versa). What does setResponse do compared to resume? The spec talks about a "fallback response", but I don't understand why you would need to set a "fallback response" with a setResponse method. Just resume(response), if there is an error.
>
>
> --
> Bill Burke
> JBoss, a division of Red Hat
> http://bill.burkecentral.com
>