You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by Apache Wiki <wi...@apache.org> on 2008/07/13 07:05:30 UTC

[Thrift Wiki] Update of "ThriftTypes" by ChadWalters

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Thrift Wiki" for change notification.

The following page has been changed by ChadWalters:
http://wiki.apache.org/thrift/ThriftTypes

------------------------------------------------------------------------------
  
  = Services =
  
- ''To be added''
+ Services are defined using Thrift types. Definition of a service is semantically equivalent to defining an interface (or a pure virtual abstract class) in object oriented programming. The Thrift compiler generates fully functional client and server stubs that implement the interface.
  
+ A service consists of a set of named functions, each with a list of parameters and a return type.
+ 
+ Note that {{{void}}} is a valid type for a function return, in addition to all other defined Thrift types. Additionally, an {{{async}}} modifier keyword may be added to a {{{void}}} function, which will generate code that does not wait for a response. Note that a pure void function will return a response to the client which guarantees that the operation has completed on the server side. With async method calls the client will only be guaranteed that the re- 
+ quest succeeded at the transport layer.
+