You are here

public function CapacityTrackerInterface::getTimeHint in Purge 8.3

Get the maximum number of seconds, a purger needs for one invalidation.

Parameters

string $purger_instance_id: The instance ID of the purger from which to return the time hint.

Return value

float The maximum number of seconds - as float - it takes this purger to process a single cache invalidation.

Throws

\Drupal\purge\Plugin\Purge\Purger\Exception\BadPluginBehaviorException Thrown when a returned floating point value is lower than 0.1, higher than 10 or is not returned as float.

\Drupal\purge\Plugin\Purge\Purger\Exception\BadBehaviorException Thrown when $purger_instance_id doesn't exist.

See also

\Drupal\purge\Plugin\Purge\Purger\PurgerCapacityDataInterface::getCooldownTime()

1 method overrides CapacityTrackerInterface::getTimeHint()
CapacityTracker::getTimeHint in src/Plugin/Purge/Purger/CapacityTracker.php
Get the maximum number of seconds, a purger needs for one invalidation.

File

src/Plugin/Purge/Purger/CapacityTrackerInterface.php, line 155

Class

CapacityTrackerInterface
Describes the capacity tracker.

Namespace

Drupal\purge\Plugin\Purge\Purger

Code

public function getTimeHint($purger_instance_id);