Serve the interface implementation iface
, which must be generated
by either Scrooge or
thrift-finagle.
Serve the interface implementation iface
, which must be generated
by either Scrooge or
thrift-finagle.
Given the IDL:
service TestService {
string query(1: string x)
}
Scrooge will generate an interface, TestService.FutureIface
,
implementing the above IDL.
TestService.FutureIface
must be implemented and passed
into serveIface
:
ThriftMuxRichServer.serveIface(":*", new TestService.FutureIface { def query(x: String) = Future.value(x) // (echo service) })
Note that this interface is discovered by reflection. Passing an invalid interface implementation will result in a runtime error.
Serve the interface implementation iface
, which must be generated
by either Scrooge or
thrift-finagle.
Serve the interface implementation iface
, which must be generated
by either Scrooge or
thrift-finagle.
Given the IDL:
service TestService {
string query(1: string x)
}
Scrooge will generate an interface, TestService.FutureIface
,
implementing the above IDL.
TestService.FutureIface
must be implemented and passed
into serveIface
:
ThriftMuxRichServer.serveIface(":*", new TestService.FutureIface { def query(x: String) = Future.value(x) // (echo service) })
Note that this interface is discovered by reflection. Passing an invalid interface implementation will result in a runtime error.