diff options
Diffstat (limited to 'vespa-feed-client-api')
3 files changed, 3 insertions, 10 deletions
diff --git a/vespa-feed-client-api/abi-spec.json b/vespa-feed-client-api/abi-spec.json index 7ac4a7619ed..9065edad92a 100644 --- a/vespa-feed-client-api/abi-spec.json +++ b/vespa-feed-client-api/abi-spec.json @@ -186,8 +186,7 @@ "public void <init>(java.lang.Throwable)", "public void <init>(ai.vespa.feed.client.DocumentId, java.lang.Throwable)", "public void <init>(ai.vespa.feed.client.DocumentId, java.lang.String, java.lang.Throwable)", - "public java.util.Optional documentId()", - "public java.lang.String getMessage()" + "public java.util.Optional documentId()" ], "fields" : [ ] }, 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 7de7aae1350..d73d36e0f4e 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 @@ -2,7 +2,6 @@ package ai.vespa.feed.client; import java.io.Closeable; -import java.time.Duration; import java.util.List; import java.util.concurrent.CompletableFuture; @@ -75,8 +74,8 @@ public interface FeedClient extends Closeable { /** Whether to retry operations of the given type. */ default boolean retry(OperationType type) { return true; } - /** Maximum number of retries per operation for assumed transient, non-backpressure problems. */ - default int retries() { return Integer.MAX_VALUE; } + /** Number of retries per operation for assumed transient, non-backpressure problems. */ + default int retries() { return 10; } } diff --git a/vespa-feed-client-api/src/main/java/ai/vespa/feed/client/FeedException.java b/vespa-feed-client-api/src/main/java/ai/vespa/feed/client/FeedException.java index dd1327f7ccf..74f906149b2 100644 --- a/vespa-feed-client-api/src/main/java/ai/vespa/feed/client/FeedException.java +++ b/vespa-feed-client-api/src/main/java/ai/vespa/feed/client/FeedException.java @@ -44,9 +44,4 @@ public class FeedException extends RuntimeException { public Optional<DocumentId> documentId() { return Optional.ofNullable(documentId); } - @Override - public String getMessage() { - return documentId != null ? "(" + documentId + ") " + super.getMessage() : super.getMessage(); - } - } |