THRIFT-923. cpp: Add completion notification to async clients
authorDavid Reiss <dreiss@apache.org>
Wed, 6 Oct 2010 17:09:45 +0000 (17:09 +0000)
committerDavid Reiss <dreiss@apache.org>
Wed, 6 Oct 2010 17:09:45 +0000 (17:09 +0000)
commitc6b4cab89c6da0272914a07b1f01491031df524f
tree69d677b9dbdee0b8fbd2a947054676323ae1ff23
parentf62126dbb30f1d9ec9a8744206c598016d366e7a
THRIFT-923. cpp: Add completion notification to async clients

Add a virtual function "completed__(bool)" to xxxCobClient that is
called by recv_xxx() after reception of a response (arg = true) or an
exception (arg = false). This allows the TAsyncClient to intercede at
that point, permitting, e.g., the load-balancing of persistent
connections that would otherwise remain bound to a single server.

A new "no_client_completion" flag inhibits generation of this mechanism.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1005131 13f79535-47bb-0310-9956-ffa450edef68
compiler/cpp/src/generate/t_cpp_generator.cc