You are here

public function TimeoutAwarePsr18Adapter::setTimeout in Acquia Search 2.x

Same name and namespace in other branches
  1. 3.x src/Client/Adapter/TimeoutAwarePsr18Adapter.php \Drupal\acquia_search\Client\Adapter\TimeoutAwarePsr18Adapter::setTimeout()

Sets adapter timeout.

Parameters

int $timeoutInSeconds: Timeout in seconds.

File

src/Client/Adapter/TimeoutAwarePsr18Adapter.php, line 64

Class

TimeoutAwarePsr18Adapter
Psr18 Adapter that implements TimeoutAwareInterface.

Namespace

Drupal\acquia_search\Client\Adapter

Code

public function setTimeout(int $timeoutInSeconds) : void {
  $this->timeout = $timeoutInSeconds;
}