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

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

From: Marek Potociar <marek.potociar_at_oracle.com>
Date: Wed, 20 Jun 2012 15:21:20 +0200

On Jun 18, 2012, at 11:55 PM, Bill Burke wrote:

>
>
> On 6/18/12 5:04 PM, Marek Potociar wrote:
>>
>> 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.
>>
>
> Ah, ok, that clears things up. Thanks.
>
> Mayben rename it to set/getTimeoutResponse or something more intuitive?

Good suggestion. I didn't want to make it explicitly a timeout-only, but something like get/setFallbackResponse() might work (?)

Marek

>
> --
> Bill Burke
> JBoss, a division of Red Hat
> http://bill.burkecentral.com
>
>