All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.gooddata.sdk.service.retry.RetryStrategy Maven / Gradle / Ivy

There is a newer version: 3.11.1+api3
Show newest version
/*
 * (C) 2023 GoodData Corporation.
 * This source code is licensed under the BSD-style license found in the
 * LICENSE.txt file in the root directory of this source tree.
 */
package com.gooddata.sdk.service.retry;

import java.net.URI;

/**
 * Interface for describing retry strategy.
 */
public interface RetryStrategy {

    /**
     * Method says if retry is allowed for given parameter combination.
     * @param method HTTP method
     * @param statusCode HTTP response code
     * @param uri requested URL
     * @return {@code true} it retry is allowed
     */
    boolean retryAllowed(String method, int statusCode, URI uri);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy