You are here

public function SolrConnectorInterface::adjustTimeout in Search API Solr 4.x

Same name and namespace in other branches
  1. 8.3 src/SolrConnectorInterface.php \Drupal\search_api_solr\SolrConnectorInterface::adjustTimeout()
  2. 8.2 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 $seconds: The new query timeout value to set.

string $timeout: (optional) The configured timeout to use. Default is self::QUERY_TIMEOUT.

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

Return value

int The previous query 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 592

Class

SolrConnectorInterface
The Solr connector interface.

Namespace

Drupal\search_api_solr

Code

public function adjustTimeout(int $seconds, string $timeout = self::QUERY_TIMEOUT, ?Endpoint &$endpoint = NULL) : int;