Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-1025

Async (NIO) request processing support in ClientHttpEngine

    Details

    • Type: Feature Request
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 3.0.6.Final
    • Fix Version/s: 4.0.0.Beta1
    • Component/s: jaxrs
    • Labels:
      None

      Description

      It would be great if RestEasy provides another method in ClientHttpEngine interface with async support (similar to what Jersey does with Connector https://jersey.java.net/apidocs/latest/jersey/index.html) by returning a Future.

      This would be very useful when integrating with an httpclient that has an async api, e.g., AsyncHttpclient (https://github.com/AsyncHttpClient/async-http-client). AsyncHttpClient has an api to run asynchronously:

      Future<Response> response = httpclient.prepareRequest(httprequest).execute();

      However, ClientHttpEngine#invoke method returns as Response object which requires to block by calling the future.get() method.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                asoldano Alessio Soldano
                Reporter:
                gurselan Anil Gursel
              • Votes:
                5 Vote for this issue
                Watchers:
                12 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: