Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
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
Attachments
Issue Links
- is depended upon by
-
THRIFT-3112 [Java] AsyncMethodCallback should be typed in generated AsyncIface
- Closed