com.twitter.inject.thrift.modules
Destination of client
Add filters to the ServiceIface based client.
Name of client for use in metrics
This method allows for further configuration of the client for parameters not exposed by this module or for overriding defaults provided herein, e.g.,
This method allows for further configuration of the client for parameters not exposed by this module or for overriding defaults provided herein, e.g.,
override def configureNonThriftMuxClient(client: Thrift.Client): Thrift.Client = { client .withProtocolFactory(myCustomProtocolFactory)) .withStatsReceiver(someOtherScopedStatsReceiver) .withMonitor(myAwesomeMonitor) .withTracer(notTheDefaultTracer) .withResponseClassifier(ThriftResponseClassifier.ThriftExceptionsAsFailures) }
In general it is recommended that users prefer to use ThriftMux if the server-side supports mux connections.
- the com.twitter.finagle.Thrift.Client to configure.
a configured Thrift.Client.
This method allows for further configuration of the client for parameters not exposed by this module or for overriding defaults provided herein, e.g.,
This method allows for further configuration of the client for parameters not exposed by this module or for overriding defaults provided herein, e.g.,
override def configureThriftMuxClient(client: ThriftMux.Client): ThriftMux.Client = { client .withProtocolFactory(myCustomProtocolFactory)) .withStatsReceiver(someOtherScopedStatsReceiver) .withMonitor(myAwesomeMonitor) .withTracer(notTheDefaultTracer) .withResponseClassifier(ThriftResponseClassifier.ThriftExceptionsAsFailures) }
- the com.twitter.finagle.ThriftMux.Client to configure.
a configured ThriftMux.Client.
Enable thrift mux for this connection.
Enable thrift mux for this connection.
Note: Both server and client must have mux enabled otherwise a nondescript ChannelClosedException will be seen.
What is ThriftMux? http://twitter.github.io/finagle/guide/FAQ.html?highlight=thriftmux#what-is-thriftmux