You are here

public function SolrConnectorPluginBase::getFinalizeTimeout in Search API Solr 8.3

Same name and namespace in other branches
  1. 8.2 src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::getFinalizeTimeout()
  2. 4.x src/SolrConnector/SolrConnectorPluginBase.php \Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase::getFinalizeTimeout()

Get the finalize timeout.

Parameters

\Solarium\Core\Client\Endpoint|null $endpoint: (optional) The Solarium endpoint object.

Return value

int The current finalize timeout value.

Overrides SolrConnectorInterface::getFinalizeTimeout

File

src/SolrConnector/SolrConnectorPluginBase.php, line 1015

Class

SolrConnectorPluginBase
Defines a base class for Solr connector plugins.

Namespace

Drupal\search_api_solr\SolrConnector

Code

public function getFinalizeTimeout(?Endpoint $endpoint = NULL) {
  $this
    ->connect();
  if (!$endpoint) {
    $endpoint = $this->solr
      ->getEndpoint();
  }
  return $endpoint
    ->getOption(self::FINALIZE_TIMEOUT);
}