thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bryan Duxbury <br...@rapleaf.com>
Subject Re: Is it possible to return service from a service function.
Date Mon, 16 Aug 2010 20:59:26 GMT
Sadly, no, service methods cannot return service instances.

On Mon, Aug 16, 2010 at 1:57 PM, EY Tsai <ey.tsai@comcast.net> wrote:

> Hi,
>
> I'm new to Thrift. Is it possible. Or any way around? Something like below
>
> struct Item {
>  1: string key,
>  2: string value
> }
>
> service Store {
>   Item get(1: string key),
>   Item save(1: string key, 2: Item e),
> }
>
> service StoreManager {
>   Store getStore(1: String storeName),
>   Store createStore(1: String storeName)
> }
>
>
> Thanks.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message