aboutsummaryrefslogtreecommitdiffstats
path: root/http-utils/src/main/java/ai/vespa/util/http/hc4/retry/RetryFailedConsumer.java
blob: ee173fdb90ba1acf1ad85aa64267a7f29b08125e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package ai.vespa.util.http.hc4.retry;

import org.apache.http.client.protocol.HttpClientContext;

/**
 * Invoked after the last retry has failed.
 *
 * @author bjorncs
 */
@FunctionalInterface
public interface RetryFailedConsumer<T> {
    void onRetryFailed(T response, int executionCount, HttpClientContext context);
}