A com.twitter.finagle.Service that returns a constant result.
A factory that won't satisfy the service future until an underlying service factory is ready.
A service wrapper that expires the self service after a certain amount of idle time.
A com.twitter.finagle.Service that fails with a constant Throwable.
A com.twitter.finagle.ServiceFactory that fails to construct services.
A com.twitter.finagle.ServiceFactory that accrues failures, marking itself unavailable when deemed unhealthy according to its configuration.
Strategy responsible for tracking requests and computing rate per client.
A com.twitter.finagle.Filter that uses an argument function to predicate whether or not to apply the subsequent com.twitter.finagle.Service.
A com.twitter.finagle.Filter that accepts or refuses requests based on a rate limiting strategy.
Represents a request/response pair.
A classification of the result of a request/response pair.
A response classifier allows developers to give Finagle the additional application specific knowledge necessary in order to properly classify them.
A response classifier allows developers to give Finagle the additional application specific knowledge necessary in order to properly classify them. Without this, Finagle can only safely make judgements about transport level failures.
As an example take an HTTP client that receives a response with a 500 status code back from a server. To Finagle this is a successful request/response based solely on the transport level. The application developer may want to treat all 500 status codes as failures and can do so via a com.twitter.finagle.service.ResponseClassifier.
It is a PartialFunction from a request/response pair to a ResponseClass and as such multiple classifiers can be composed together via PartialFunction.orElse.
it is a good practice for users of ResponseClassifier.apply
to
instead use theClassifier.applyOrElse(input, ResponseClassifier.Default)
in order to ensure that the PartialFunction will be fully covering.
Finagle's default classifier is com.twitter.finagle.service.ResponseClassifier.Default which is a total function fully covering the input domain.
,Java does not understand the type alias and must be used as
PartialFunction
in Java.
com.twitter.finagle.http.service.HttpResponseClassifier
for some
HTTP classification tools.
Represents a budget for retrying requests.
A com.twitter.finagle.Filter that coordinates retries of subsequent Services.
A com.twitter.finagle.Filter that coordinates retries of subsequent Services.
A function defining retry behavior for a given value type A
.
ShardingService takes a Distributor
where the handle is a service.
A retry policy abstract class.
A com.twitter.finagle.ServiceFactory that produces
Services identical to the argument service
.
A StatsFilter
reports request statistics including number of requests,
number successful and request latency to the given StatsReceiver.
A com.twitter.finagle.Filter that applies a global timeout to requests.
Implements various backoff strategies.
A static com.twitter.finagle.FailedService object.
A module which allows clients to limit the number of pending requests per connection.
The Stack parameters and modules for configuring which and how many failed requests are retried for a client.
See RetryBudgets for Java APIs.