used to determine which request/response pairs are successful or not.
Reserve the use of the returned Service instance.
Reserve the use of the returned Service instance.
To relinquish the use of the reserved Service, the user must call Service.close().
will be ClientConnection.nil when called on the client-side.
Reserve the use of the returned Service instance using ClientConnection.nil.
Reserve the use of the returned Service instance using ClientConnection.nil.
To relinquish the use of the reserved Service, the user must call Service.close().
Called by FailureAccrualFactory after marking an endpoint dead.
Called by FailureAccrualFactory after marking an endpoint dead. Override this method to perform additional actions.
Apply f
on created services, returning the resulting Future in their
stead.
Apply f
on created services, returning the resulting Future in their
stead. This is useful for implementing common factory wrappers that
only need to modify or operate on the underlying service.
Return true
if and only if status is currently Status.Open.
Return true
if and only if status is currently Status.Open.
Map created services.
Map created services. Useful for implementing common styles of factory wrappers.
Enter 'Probing' state.
Enter 'Probing' state. The service must satisfy one request before accepting more.
The current availability Status of this ServiceFactory
The current availability Status of this ServiceFactory
Make a service that after dispatching a request on that service, releases the service.
Make a service that after dispatching a request on that service, releases the service.
A com.twitter.finagle.ServiceFactory that accrues failures, marking itself unavailable when deemed unhealthy according to the configured
policy
.This acts as a request driven circuit breaker.
Note this module fails open – that is, even if it transitions into a closed state, requests will still be allowed to flow through it. Although, when used in a typical Finagle client, there is one instance of this module per node and as such, the load balancer will avoid nodes where the status is not open.
The user guide for more details.