A default client implementation that does load balancing and connection pooling.
A default client implementation that does load balancing and connection pooling. The only required argument is a binder, responsible for binding concrete endpoints (named by SocketAddresses).
A name identifying the client.
A function used to create a ServiceFactory to a concrete endpoint.
The pool used to cache idle service (connection).
The maximum time for which any Service is
permitted to be idle.
The maximum lifetime for any Service
The maximum time that any request is allowed to take.
When enabled, installs a fail-fast module. See com.twitter.finagle.service.FailFastFactory
A failure accruing mechanism. Used to gauge the health of the ServiceFactory. By default this uses com.twitter.finagle.client.DefaultClient.defaultFailureAccrual
The maximum amount of time allowed for acquiring a service. Defaults to infinity.
Create a watermark pool backed by a caching pool.
Create a watermark pool backed by a caching pool. This is the default pooling setup of Finagle.
The low watermark used in the Watermark pool. If there is sufficient request concurrency, no fewer connections will be maintained by the pool.
The high watermark. The pool will not maintain more connections than this.
Specifies the size of the lock-free buffer in front of the pool configuration. Skipped if 0.
The amount of idle time for which a connection is cached. This is applied to connections that number greater than the low watermark but fewer than the high.
The maximum number of connection requests that are queued when the connection concurrency exceeds the high watermark.
The standard template implementation for com.twitter.finagle.client.StackClient.
Transform a service factory stack.
Transporters are simple functions from a SocketAddress to a
Future[Transport[In, Out]].
Transporters are simple functions from a SocketAddress to a
Future[Transport[In, Out]]. They represent a transport layer session from a
client to a server. Transporters are symmetric to the server-side
com.twitter.finagle.server.Listener.
Extraction of com.twitter.finagle.Addr.Metadata from a com.twitter.finagle.factory.LoadBalancerFactory.Dest
Latency compensation enables the modification of connection and request timeouts on a per-endpoint basis.
Latency compensation enables the modification of connection and request timeouts on a per-endpoint basis. For instance, if a client has both network-local and trans-continental endpoints, a reasonable latency compensator might add the speed-of-light penalty when communicating with distant endpoints.
Stats scoping enabled the modification of the StatsReceiver scoping on a per-endpoint basis.
Stats scoping enabled the modification of the StatsReceiver scoping on a per-endpoint basis. For instance, if a client has endpoints in multiple zones, a scoper might add a per-zone scope.
A collection of Stack.Params useful for configuring a com.twitter.finagle.client.Transporter.