summaryrefslogtreecommitdiffstats
path: root/vespa-feed-client/src/main/java/ai/vespa/feed/client/RequestStrategy.java
diff options
context:
space:
mode:
Diffstat (limited to 'vespa-feed-client/src/main/java/ai/vespa/feed/client/RequestStrategy.java')
-rw-r--r--vespa-feed-client/src/main/java/ai/vespa/feed/client/RequestStrategy.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/vespa-feed-client/src/main/java/ai/vespa/feed/client/RequestStrategy.java b/vespa-feed-client/src/main/java/ai/vespa/feed/client/RequestStrategy.java
index 466c4f9a0ab..1787d8d65c6 100644
--- a/vespa-feed-client/src/main/java/ai/vespa/feed/client/RequestStrategy.java
+++ b/vespa-feed-client/src/main/java/ai/vespa/feed/client/RequestStrategy.java
@@ -14,10 +14,10 @@ import java.util.function.BiConsumer;
*/
public interface RequestStrategy {
- /** Whether this has failed, and we should stop. */
+ /** Whether this has failed fatally, and we should cease sending further operations. */
boolean hasFailed();
- /** Enqueue the given operation, which is dispatched to a vessel future when ready. */
+ /** Enqueue the given operation, returning its future result. This may block if the client send queue is full. */
CompletableFuture<SimpleHttpResponse> enqueue(DocumentId documentId, SimpleHttpRequest request,
BiConsumer<SimpleHttpRequest, CompletableFuture<SimpleHttpResponse>> dispatch);