Skip to content
This repository has been archived by the owner on Oct 15, 2019. It is now read-only.

Multiple @ThriftMethod-annotated methods named #291

Closed
renyankankan opened this issue Jan 8, 2016 · 1 comment
Closed

Multiple @ThriftMethod-annotated methods named #291

renyankankan opened this issue Jan 8, 2016 · 1 comment

Comments

@renyankankan
Copy link

123

so, it makes all the @ThriftMethod-annotated methods must be different, even they are in different ThriftService, why?

@bgould
Copy link
Contributor

bgould commented Jan 15, 2016

They discuss that in the documentation here:

https://github.com/facebook/swift/tree/master/swift-service#thrift-server

Additionally, Swift supports mix in style servers where multiple Thrift services can be exported on the same port without having to use Java class inheritance. The only restriction is that the services must have non-overlaping method names.

If you want to be able to have overlapping names, instead of using "mix in style servers" you can use TMultiplexedProtocol which also allows you to export multiple services from the same endpoint, but uses namespacing so you can have overlapping names

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants