Roger Meier | 2be7f24 | 2012-05-10 09:01:45 +0000 | [diff] [blame] | 1 | namespace cpp apache.thrift.test |
| 2 | |
| 3 | exception MyError { |
| 4 | 1: string message |
| 5 | } |
| 6 | |
| 7 | service ParentService { |
| 8 | i32 incrementGeneration() |
| 9 | i32 getGeneration() |
| 10 | void addString(1: string s) |
| 11 | list<string> getStrings() |
| 12 | |
| 13 | binary getDataWait(1: i32 length) |
| 14 | oneway void onewayWait() |
| 15 | void exceptionWait(1: string message) throws (2: MyError error) |
| 16 | void unexpectedExceptionWait(1: string message) |
| 17 | } |
| 18 | |
| 19 | service ChildService extends ParentService { |
| 20 | i32 setValue(1: i32 value) |
| 21 | i32 getValue() |
| 22 | } |