We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
setMaxRetries
1 parent 9745e6d commit 3e94a0fCopy full SHA for 3e94a0f
clients/algoliasearch-client-php/lib/Configuration/SearchConfig.php
@@ -26,6 +26,20 @@ public function getWaitTaskTimeBeforeRetry()
26
return $this->config['waitTaskTimeBeforeRetry'];
27
}
28
29
+ /**
30
+ * Sets the max retries value used in the Search helpers (e.g. replaceAllobjects).
31
+ *
32
+ * @param number $maxRetries the user agent of the api client
33
34
+ * @return $this
35
+ */
36
+ public function setMaxRetries($maxRetries)
37
+ {
38
+ $this->config['defaultMaxRetries'] = $maxRetries;
39
+
40
+ return $this;
41
+ }
42
43
public function getDefaultMaxRetries()
44
{
45
return $this->config['defaultMaxRetries'];
0 commit comments