[
https://issues.apache.org/jira/browse/THRIFT-1972?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13661729#comment-13661729
]
Hudson commented on THRIFT-1972:
--------------------------------
Integrated in Thrift #646 (See [https://builds.apache.org/job/Thrift/646/])
THRIFT-1972 Add async server processors to Java (Revision
36af4d3b406569123b7e488b688bfc1d1fcb92f9)
Result = SUCCESS
jake :
Files :
* lib/java/test/org/apache/thrift/server/TestAsyncServer.java
* lib/java/src/org/apache/thrift/server/AbstractNonblockingServer.java
* lib/java/test/org/apache/thrift/server/ServerTestBase.java
* lib/java/src/org/apache/thrift/TProcessorFactory.java
* lib/java/src/org/apache/thrift/AsyncProcessFunction.java
* lib/java/src/org/apache/thrift/TBaseAsyncProcessor.java
* lib/java/src/org/apache/thrift/server/TThreadedSelectorServer.java
* compiler/cpp/src/generate/t_java_generator.cc
* lib/java/src/org/apache/thrift/server/TNonblockingServer.java
> Add support for async processors
> --------------------------------
>
> Key: THRIFT-1972
> URL: https://issues.apache.org/jira/browse/THRIFT-1972
> Project: Thrift
> Issue Type: Improvement
> Components: Java - Compiler, Java - Library
> Reporter: T Jake Luciani
> Assignee: T Jake Luciani
> Fix For: 1.0
>
> Attachments: 1972.txt
>
>
> 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.
> {code}
> public void testStruct(Xtruct thing, AsyncMethodCallback resultHandler);
> {code}
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira