The client name used when group isn't named.
The client name used when group isn't named.
The Stack.Params
to be used by this client.
The Stack.Params
to be used by this client.
Both defaultClientName and stats predate Stack.Params and as such are implemented separately.
Create a new client of type Iface
, which must be generated
by either Scrooge or
thrift-finagle.
Create a new client of type Iface
, which must be generated
by either Scrooge or
thrift-finagle.
Create a new client of type Iface
, which must be generated
by either Scrooge or
thrift-finagle.
Create a new client of type Iface
, which must be generated
by either Scrooge or
thrift-finagle.
Create a new client of type Iface
, which must be generated
by either Scrooge or
thrift-finagle.
Create a new client of type Iface
, which must be generated
by either Scrooge or
thrift-finagle.
Converts from a Service interface (ServiceIface
) to the
method interface (newIface
).
Construct a Finagle Service
interface for a Scrooge-generated Thrift object.
Construct a Finagle Service
interface for a Scrooge-generated Thrift object.
E.g. given a Thrift service
service Logger { string log(1: string message, 2: i32 logLevel); i32 getLogSize(); }
you can construct a client interface with a Finagle Service per Thrift method:
val loggerService = Thrift.client.newServiceIface[Logger.ServiceIface]("localhost:8000", "client_label") val response = loggerService.log(Logger.Log.Args("log message", 1))
The Finagle Service to be used.
Assign a label for scoped stats.
The builder type is generated by Scrooge for a thrift service.
Construct a Finagle Service
interface for a Scrooge-generated Thrift object.
Construct a Finagle Service
interface for a Scrooge-generated Thrift object.
E.g. given a Thrift service
service Logger { string log(1: string message, 2: i32 logLevel); i32 getLogSize(); }
you can construct a client interface with a Finagle Service per Thrift method:
val loggerService = Thrift.client.newServiceIface[Logger.ServiceIface]("localhost:8000", "client_label") val response = loggerService.log(Logger.Log.Args("log message", 1))
Address of the service to connect to.
Assign a label for scoped stats.
The builder type is generated by Scrooge for a thrift service.
Construct a Finagle Service
interface for a Scrooge-generated Thrift object.
Construct a Finagle Service
interface for a Scrooge-generated Thrift object.
E.g. given a Thrift service
service Logger { string log(1: string message, 2: i32 logLevel); i32 getLogSize(); }
you can construct a client interface with a Finagle Service per Thrift method:
val loggerService = Thrift.client.newServiceIface[Logger.ServiceIface]("localhost:8000", "client_label") val response = loggerService.log(Logger.Log.Args("log message", 1))
Address of the service to connect to, in the format accepted by Resolver.eval
.
Assign a label for scoped stats.
The builder type is generated by Scrooge for a thrift service.
A mixin trait to provide a rich Thrift client API.