Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-1972

Add support for async processors

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.9.1
    • None
    • Patch Available

    Description

      This patch adds async processors that work with the existing Nonblocking server implementations, by using the existing AsyncIface service implementation.

      It uses the callback handler for each method to allow the implementation to respond in a asynchronous fashion.

          public void testStruct(Xtruct thing, AsyncMethodCallback resultHandler);
      

      When the implementation is ready to respond to a client it passes the result or exception to the onSuccess/onError call of the result handler, which will in turn send the response to the client.

      We plan to use this to allow clients to send requests and wait for a event to occur on the server without using one thread per blocking call.

      Attachments

        1. 1972.txt
          25 kB
          T Jake Luciani

        Issue Links

          Activity

            People

              tjake T Jake Luciani
              tjake T Jake Luciani
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: