This method allows for further configuration of the ThriftMux client for parameters not exposed by this module or for overriding defaults provided herein, e.g.,
This method allows for further configuration of the ThriftMux 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.
Default amount of time to block in Duration) on
a Closable to close that is registered in a closeOnExit
block.
Default amount of time to block in Duration) on
a Closable to close that is registered in a closeOnExit
block.
a com.twitter.util.Duration
Duration)
Default amount of time to wait for any Closable being registered in a closeOnExit
block.
Default amount of time to wait for any Closable being registered in a closeOnExit
block.
Note that this timeout is advisory, as it attempts to give the close function some leeway, for
example to drain clients or finish up other tasks.
a com.twitter.util.Duration
Duration)
Function to add a user-defined Monitor.
Function to add a user-defined Monitor. A com.twitter.finagle.util.DefaultMonitor will be installed implicitly which handles all exceptions caught in the stack. Exceptions that are not handled by a user-defined monitor are propagated to the com.twitter.finagle.util.DefaultMonitor.
NullMonitor has no influence on DefaultMonitor behavior here.
Configures a "global" request timeout
on the ThriftMux client (default: unbounded).
Configures a "global" request timeout
on the ThriftMux client (default: unbounded).
This will set *all* requests to *every* method to have the same total timeout.
a Duration which represents the total request timeout
https://twitter.github.io/finagle/guide/Clients.html#timeouts-expiration
com.twitter.finagle.param.CommonParams.withRequestTimeout
Default com.twitter.finagle.service.RetryBudget.
Default com.twitter.finagle.service.RetryBudget. It is highly recommended that budgets be shared between all filters that retry or re-queue requests to prevent retry storms.
a default com.twitter.finagle.service.RetryBudget
https://twitter.github.io/finagle/guide/Clients.html#retries
Configures the session acquisition timeout
of this client (default: unbounded).
Configures the session acquisition timeout
of this client (default: unbounded).
a Duration which represents the acquisition timeout
https://twitter.github.io/finagle/guide/Clients.html#timeouts-expiration
com.twitter.finagle.param.ClientSessionParams.acquisitionTimeout
A TwitterModule allows users to configure a Finagle
ThriftMux
client and does NOT provide ability to filter or configure per-method Scrooge-generated interfaces. The client interface can be expressed as aMethodPerEndpoint
or higher-kinded interface.Provides bindings for a Scrooge-generated
MethodPerEndpoint
or higher-kinded interface.See the ThriftMethodBuilderClientModule for building a
ThriftMux
client that allows for filtering and configuration per-method of the Scrooge-generated interface.A Scrooge-generated
MethodPerEndpoint
or the higher-kinded type of the Scrooge-generated service, e.g.,MyService[Future]
.This TwitterModule expects a com.twitter.finagle.thrift.ClientId to be bound to the object graph but does not assume how it is done. A com.twitter.finagle.thrift.ClientId can be bound by including the ThriftClientIdModule in your server configuration.
What is ThriftMux?
Finagle Clients
String, label: String)