resteasy/Resteasy — pull request #540 by MarkusKull (2014-08-04 11:22:24+00:00)
Title: Resteasy-1025 async http client engine

Adds a new interface "AsyncHttpClientEngine" deriving from ClientHttpEngine to support truly async communication model. ClientInvocation uses this optional interface if available.
There is also a behaviour change regarding InvocationCallbacks: the callback is now called in parallel/after the future, similar to jersey. Thus the callback and the future will now see always the same result (and the future will see no exception thrown by callback).

Also included is a implementation for apache httpcomponents httpasyncclient. Care has been taken to not change the existing maven dependencies except of a new optional dependency.