aboutsummaryrefslogtreecommitdiffstats
path: root/http-utils/src/main/java/ai/vespa/util/http/hc4/retry/RetryPredicate.java
blob: 5737ef263841b78adf2c65309c65eb2e43b71ea2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Copyright Vespa.ai. 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;

import java.util.function.BiPredicate;

/**
 * A predicate that determines whether an operation should be retried.
 *
 * @author bjorncs
 */
public interface RetryPredicate<T> extends BiPredicate<T, HttpClientContext> {}