MediaWiki master
MediaWiki\PoolCounter\PoolCounterFactory Class Reference

Public Member Functions

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

Detailed Description

Since
1.40

Definition at line 9 of file PoolCounterFactory.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 21 of file PoolCounterFactory.php.

Member Function Documentation

◆ create()

MediaWiki\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 40 of file PoolCounterFactory.php.


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