[email protected] wrote:
> Author: davsclaus
> Date: Fri May  8 15:41:29 2009
> New Revision: 773035
> 
> URL: http://svn.apache.org/viewvc?rev=773035&view=rev
> Log:
> CAMEL-1572: Added async sample for show and tell of the new Async API.
> 

> +
> +        // so we use the async extract body to return a string body response
> +        // this allows us to do this in a single code line instead of using 
> the
> +        // JDK Future API to get hold of it, but you can also use that if 
> you want
> +        String response = template.asyncExtractBody(future, String.class);
> +        assertEquals("Bye World", response);
> +
How about name the method with extractFutureBody?
asyncExtractBody makes me think it's async method call, but in fact it
will block the calling thread if the feature is not done yet.

Willem

Reply via email to