You are here

public function SolrConnectorInterface::adjustTimeout in Search API Solr 8.2

Same name and namespace in other branches
  1. 8.3 src/SolrConnectorInterface.php \Drupal\search_api_solr\SolrConnectorInterface::adjustTimeout()
  2. 4.x src/SolrConnectorInterface.php \Drupal\search_api_solr\SolrConnectorInterface::adjustTimeout()

Sets a new timeout for queries, but not for indexing or optimization.

The timeout will not be saved in the configuration of the connector. It will be overwritten for the current request only.

Parameters

int $timeout:

\Solarium\Core\Client\Endpoint|NULL $endpoint:

Return value

int The previous timeout value.

1 method overrides SolrConnectorInterface::adjustTimeout()
SolrConnectorPluginBase::adjustTimeout in src/SolrConnector/SolrConnectorPluginBase.php
Sets a new timeout for queries, but not for indexing or optimization.

File

src/SolrConnectorInterface.php, line 432

Class

SolrConnectorInterface

Namespace

Drupal\search_api_solr

Code

public function adjustTimeout(int $timeout, Endpoint $endpoint = NULL);