MediaWiki  master
PoolCounter\PoolCounterFactory Class Reference

Public Member Functions

 __construct (?array $typeConfigs, array $clientConf)
 
 create (string $type, string $key)
 Get a PoolCounter. More...
 

Detailed Description

Since
1.40

Definition at line 10 of file PoolCounterFactory.php.

Constructor & Destructor Documentation

◆ __construct()

PoolCounter\PoolCounterFactory::__construct ( ?array  $typeConfigs,
array  $clientConf 
)
Access: internal
For use by ServiceWiring
Parameters
array | null$typeConfigsSee $wgPoolCounterConf
array$clientConfSee $wgPoolCountClientConf

Definition at line 20 of file PoolCounterFactory.php.

Member Function Documentation

◆ create()

PoolCounter\PoolCounterFactory::create ( string  $type,
string  $key 
)

Get a PoolCounter.

Access: internal
This should only be called from PoolCounterWork
Parameters
string$typeThe class of actions to limit concurrency for (task type)
string$key
Returns
PoolCounter

Definition at line 38 of file PoolCounterFactory.php.


The documentation for this class was generated from the following file: