Create a new client connected to dest
.
Create a new client connected to dest
.
See the user guide
for details on destination names.
Argument label
is used to assign a label to this client.
The label is used to display stats, etc.
Create a new service which dispatches requests to dest
.
Create a new service which dispatches requests to dest
.
See the user guide
for details on destination names.
Argument label
is used to assign a label to this client.
The label is used to display stats, etc.
The current parameter map.
The current parameter map.
The current stack.
A new StackClient with the provided stack
.
A new StackClient with the provided stack
.
withStack
that takes a Function1
for a more ergonomic
API when used with method chaining.
Java friendly API for configured
.
Java friendly API for configured
.
The Tuple2
can often be created by calls to a mk(): (P, Stack.Param[P])
method on parameters (see
com.twitter.finagle.loadbalancer.LoadBalancerFactory.Param.mk()
as an example).
Add the parameter, p
, to the current Params.
Add the parameter, p
, to the current Params.
Java users may find it easier to use the Tuple2
version below.
Adds all parameters, newParams
, to the current Params.
Adds all parameters, newParams
, to the current Params.
Create a new client connected to dest
.
Create a new client connected to dest
.
See the user guide
for details on destination names.
Argument label
is used to assign a label to this client.
The label is used to display stats, etc.
Create a new client connected to dest
.
Create a new client connected to dest
.
See the user guide
for details on destination names.
Create a new service which dispatches requests to dest
.
Create a new service which dispatches requests to dest
.
See the user guide
for details on destination names.
Create a new service which dispatches requests to dest
.
Create a new service which dispatches requests to dest
.
See the user guide
for details on destination names.
Export info about the transporter type so that we can query info about its implementation at runtime.
Export info about the transporter type so that we can query info about its implementation at runtime.
A new StackClient using the function to create a new Stack.
A new StackClient using the function to create a new Stack.
The input to fn
is the client's current stack.
This API allows for easier usage when writing code that
uses method chaining.
This method is similar to transformed while providing easier API
ergonomics for one-off Stack
changes.
From Scala:
import com.twitter.finagle.Http
Http.client.withStack(_.prepend(MyStackModule))
From Java:
import com.twitter.finagle.Http; import static com.twitter.util.Function.func; Http.client().withStack(func(stack -> stack.prepend(MyStackModule)));
withStack(Stack)
A Client that composes a Stack.