public function SolrConnectorPluginBase::getOptimizeTimeout in Search API Solr 4.x
Same name and namespace in other branches
- 8.3 src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::getOptimizeTimeout()
- 8.2 src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::getOptimizeTimeout()
Get the optimize timeout.
Parameters
\Solarium\Core\Client\Endpoint|null $endpoint: (optional) The Solarium endpoint object.
Return value
int The current optimize timeout value.
Overrides SolrConnectorInterface::getOptimizeTimeout
File
- src/
SolrConnector/ SolrConnectorPluginBase.php, line 1135
Class
- SolrConnectorPluginBase
- Defines a base class for Solr connector plugins.
Namespace
Drupal\search_api_solr\SolrConnectorCode
public function getOptimizeTimeout(?Endpoint $endpoint = NULL) {
$this
->connect();
if (!$endpoint) {
$endpoint = $this->solr
->getEndpoint();
}
return $endpoint
->getOption(self::OPTIMIZE_TIMEOUT);
}