Share via


IShouldRetry Interface

public interface IShouldRetry

Indicates whether a specific request should be retried

Method Summary

Modifier and Type Method and Description
abstract boolean shouldRetry(long delay, int executionCount, Request request, Response response)

Determines whether a specific request should be retried

Method Details

shouldRetry

public abstract boolean shouldRetry(long delay, int executionCount, Request request, Response response)

Determines whether a specific request should be retried

Parameters:

delay - the delay to wait before retrying
executionCount - number of retry attempts
request - current request
response - current response

Returns:

whether the specific request should be retried by the handler

Applies to