package ru.yandex.qe.http.retries;

import java.io.IOException;

import org.apache.http.HttpResponse;
import org.apache.http.protocol.HttpContext;

/**
 * Established by terry
 * on 26.01.16.
 */
public interface BackoffStrategy {

    long retryIntervalMs(HttpResponse response, int executionCount, HttpContext context);

    long retryIntervalMs(IOException response, int executionCount, HttpContext context);
}
