Skip to content

Commit 68bbcbb

Browse files
louisfischFluf22
andauthored
feat(php): add setWaitTaskTimeBeforeRetry method for Search and Ingestion clients (#5514)
Co-authored-by: Thomas Raffray <Fluf22@users.noreply.github.com>
1 parent 3d54c74 commit 68bbcbb

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

templates/php/client_config.mustache

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ class {{configClassname}} extends {{#hasRegionalHost}}ConfigWithRegion{{/hasRegi
3333
{{#isIngestionClient}}
3434
private $defaultWaitTaskTimeBeforeRetry = 5000; // 5 sec in milliseconds
3535

36+
public function setWaitTaskTimeBeforeRetry($waitTaskTimeBeforeRetry)
37+
{
38+
$this->config['waitTaskTimeBeforeRetry'] = $waitTaskTimeBeforeRetry;
39+
40+
return $this;
41+
}
42+
3643
public function getWaitTaskTimeBeforeRetry()
3744
{
3845
return $this->config['waitTaskTimeBeforeRetry'];
@@ -53,6 +60,13 @@ class {{configClassname}} extends {{#hasRegionalHost}}ConfigWithRegion{{/hasRegi
5360
return new static($config);
5461
}
5562

63+
public function setWaitTaskTimeBeforeRetry($waitTaskTimeBeforeRetry)
64+
{
65+
$this->config['waitTaskTimeBeforeRetry'] = $waitTaskTimeBeforeRetry;
66+
67+
return $this;
68+
}
69+
5670
public function getWaitTaskTimeBeforeRetry()
5771
{
5872
return $this->config['waitTaskTimeBeforeRetry'];
@@ -120,4 +134,4 @@ class {{configClassname}} extends {{#hasRegionalHost}}ConfigWithRegion{{/hasRegi
120134
{{/isSearchClient}}
121135
];
122136
}
123-
}
137+
}

0 commit comments

Comments
 (0)