Class RetryableEurekaHttpClient

  • All Implemented Interfaces:
    EurekaHttpClient

    public class RetryableEurekaHttpClient
    extends EurekaHttpClientDecorator
    RetryableEurekaHttpClient retries failed requests on subsequent servers in the cluster. It maintains also simple quarantine list, so operations are not retried again on servers that are not reachable at the moment.

    Quarantine

    All the servers to which communication failed are put on the quarantine list. First successful execution clears this list, which makes those server eligible for serving future requests. The list is also cleared once all available servers are exhausted.

    5xx

    If 5xx status code is returned, ServerStatusEvaluator predicate evaluates if the retries should be retried on another server, or the response with this status code returned to the client.