public static Function<Client<HttpRequest, HttpResponse>, RetryingHttpClient>
    newDecorator(RetryStrategy retryStrategy) {
        return new RetryingHttpClientBuilder(retryStrategy).newDecorator();
    }
public static Function < Client < HttpRequest , HttpResponse > , RetryingHttpClient > newDecorator ( RetryStrategy retryStrategy ) { return new RetryingHttpClientBuilder ( retryStrategy ) . newDecorator ( ) ; }
Creates a new {@link Client} decorator that handles failures of an invocation and retries HTTP requests.

@param retryStrategy the retry strategy