You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Michael Donaghy (JIRA)" <ji...@apache.org> on 2014/11/07 17:18:34 UTC

[jira] [Created] (THRIFT-2804) Pull an interface out of TBaseAsyncProcessor

Michael Donaghy created THRIFT-2804:
---------------------------------------

             Summary: Pull an interface out of TBaseAsyncProcessor
                 Key: THRIFT-2804
                 URL: https://issues.apache.org/jira/browse/THRIFT-2804
             Project: Thrift
          Issue Type: Improvement
          Components: Java - Library
            Reporter: Michael Donaghy


TNonblockingServer and friends are currently quite tightly coupled to TBaseAsyncProcessor, using an instanceof check to determine whether to use the async-processor or sync-processor code path. This makes it impossible to write a "custom" async processor, as any processor which is not a TBaseAsyncProcessor will use the sync code path (which behaves incorrectly with async processors).

The idea is to separate out an interface, TAsyncProcessor. Custom async processors can then implement this interface and the server will take the async code path when used with such a processor.

Code at https://github.com/apache/thrift/pull/253



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)