summaryrefslogtreecommitdiffstats
path: root/vespa-http-client
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2020-08-03 17:55:45 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2020-08-03 17:55:45 +0000
commitef830f3cf632e8679255d28f12bbde50ec483148 (patch)
tree43c43588385f15988004613d3ba421a3409a3434 /vespa-http-client
parentf229c6d5a395ad72f32bfd957012b86f0e5fd322 (diff)
Let fast be fast
Diffstat (limited to 'vespa-http-client')
-rw-r--r--vespa-http-client/src/main/java/com/yahoo/vespa/http/client/SyncFeedClient.java2
-rw-r--r--vespa-http-client/src/main/java/com/yahoo/vespa/http/client/config/FeedParams.java5
2 files changed, 3 insertions, 4 deletions
diff --git a/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/SyncFeedClient.java b/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/SyncFeedClient.java
index 19bd53c422a..be23e80c0bd 100644
--- a/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/SyncFeedClient.java
+++ b/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/SyncFeedClient.java
@@ -30,7 +30,7 @@ public class SyncFeedClient implements AutoCloseable {
if (params.getFeedParams().getIdlePollFrequency() == null) {
params = params.toBuilder()
.setFeedParams(params.getFeedParams().toBuilder()
- .setIdlePollFrequency(200)
+ .setIdlePollFrequency(1000)
.build())
.build();
}
diff --git a/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/config/FeedParams.java b/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/config/FeedParams.java
index f5b9714b007..d623db3834c 100644
--- a/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/config/FeedParams.java
+++ b/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/config/FeedParams.java
@@ -178,10 +178,9 @@ public final class FeedParams {
}
/**
- * Set what frequency to poll for async responses. Default is 10 (every 0.1s)
- * If latency is important, or using it in a synchronous way (which is not recommended as throughput is priority),
- * you can try increasing the frequency. Note that this will incur significantly higher cpu and bandwidth usage.
+ * Set what frequency to poll for async responses. Default is 10hz (every 0.1s), but 1000hz when using SyncFeedClient
*/
+ @Beta
public Builder setIdlePollFrequency(Double idlePollFrequency) {
this.idlePollFrequency = idlePollFrequency;
return this;