You are here

public function ServerTaskManagerInterface::getCount in Search API 8

Retrieves the number of pending server tasks.

Parameters

\Drupal\search_api\ServerInterface|null $server: (optional) The server whose tasks should be counted, or NULL to count all tasks.

Return value

int The number of tasks pending for this server, or in total.

1 method overrides ServerTaskManagerInterface::getCount()
ServerTaskManager::getCount in src/Task/ServerTaskManager.php
Retrieves the number of pending server tasks.

File

src/Task/ServerTaskManagerInterface.php, line 22

Class

ServerTaskManagerInterface
Defines the interface for the server task manager.

Namespace

Drupal\search_api\Task

Code

public function getCount(ServerInterface $server = NULL);