summaryrefslogtreecommitdiffstats
path: root/vespa-feed-client-api/src/main
diff options
context:
space:
mode:
authorjonmv <venstad@gmail.com>2024-05-16 19:32:45 +0200
committerjonmv <venstad@gmail.com>2024-05-16 19:32:45 +0200
commitd7954c1b84d26b7f6b429159c3d9b956dc39eaef (patch)
tree749c6e82597366cf954e335448456b28fdd646f2 /vespa-feed-client-api/src/main
parenta2c23bb2ecd78118c1282944cb3c30076b47775c (diff)
Retry until timeout, with default lots of retries
Diffstat (limited to 'vespa-feed-client-api/src/main')
-rw-r--r--vespa-feed-client-api/src/main/java/ai/vespa/feed/client/FeedClient.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/vespa-feed-client-api/src/main/java/ai/vespa/feed/client/FeedClient.java b/vespa-feed-client-api/src/main/java/ai/vespa/feed/client/FeedClient.java
index c45e37c79bb..7de7aae1350 100644
--- a/vespa-feed-client-api/src/main/java/ai/vespa/feed/client/FeedClient.java
+++ b/vespa-feed-client-api/src/main/java/ai/vespa/feed/client/FeedClient.java
@@ -76,10 +76,7 @@ public interface FeedClient extends Closeable {
default boolean retry(OperationType type) { return true; }
/** Maximum number of retries per operation for assumed transient, non-backpressure problems. */
- default int retries() { return 10; }
-
- /** Grace period within which an operation may be retried past its retry count (see {@link #retries}). */
- default Duration gracePeriod() { return Duration.ofSeconds(10); }
+ default int retries() { return Integer.MAX_VALUE; }
}