Interface LoadBalancerRetryPolicy

    • Method Detail

      • canRetrySameServiceInstance

        boolean canRetrySameServiceInstance​(LoadBalancerRetryContext context)
        Return true to retry on the same service instance.
        Parameters:
        context - the context for the retry operation
        Returns:
        true to retry on the same service instance
      • canRetryNextServiceInstance

        boolean canRetryNextServiceInstance​(LoadBalancerRetryContext context)
        Return true to retry on the next service instance.
        Parameters:
        context - the context for the retry operation
        Returns:
        true to retry on the same service instance
      • retryableStatusCode

        boolean retryableStatusCode​(int statusCode)
        Return true to retry on the provided HTTP status code.
        Parameters:
        statusCode - the HTTP status code
        Returns:
        true to retry on the provided HTTP status code
      • canRetryOnMethod

        boolean canRetryOnMethod​(org.springframework.http.HttpMethod method)
        Return true to retry on the provided HTTP method.
        Parameters:
        method - the HTTP request method
        Returns:
        true to retry on the provided HTTP method