Programmer's Guide to Apache Thrift by Randy Abernethy

Programmer's Guide to Apache Thrift by Randy Abernethy

Author:Randy Abernethy
Language: eng
Format: epub
Publisher: Manning Publications


This session runs much like the C++ client session. It’s worth appreciating the fact that in this example, a C++ exception object was thrown in a C++ service, trapped by the Apache Thrift processor, serialized into a binary stream, transmitted to the Java client proxy, de-serialized into a Java exception object, and thrown in the Java client process. This is a lot of functionality in exchange for a few lines of IDL.

9.5.5. Python user-defined exception client

To round out the examples, the following listing demonstrates the exception client coded in Python.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.