David M. Lloyd wrote:
> Alan D. Cabrera wrote:

<snip>

> So, I was thinking that you would send requests like so:
>>
>> ahc.send(url, listener);
> 
> This is a departure from the rest of MINA though, in which the idiom
> is more like this:
> 
>   ahc.send(request).setListener(listener);  // does not block

To clarify, we should support send(...).addListener(listener) so that we
can have multiple completion listeners.  One of my big pet peeves with
AHC as it stands now is that it only accepts one completion listener and
you have to specify that completion listener when the request is initiated.

One of the really powerful features of MINA is that you can add a
completion listener to a future at any time as well as add as many
listeners you want.

-Mike

<snip>

Reply via email to