MediaWiki REL1_40
MediaWiki\PoolCounter\PoolCounterConnectionManager Class Reference

Helper for \MediaWiki\PoolCounter\PoolCounterClient. More...

Public Member Functions

 __construct ( $conf)
 
 close ( $conn)
 
 get ( $key)
 

Public Attributes

int $connect_timeout
 
array $conns = []
 
 $host
 
string[] $hostNames
 
 $port
 
array $refCounts = []
 
float $timeout
 

Detailed Description

Helper for \MediaWiki\PoolCounter\PoolCounterClient.

Access: internal
Since
1.16

Definition at line 33 of file PoolCounterConnectionManager.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\PoolCounter\PoolCounterConnectionManager::__construct ( $conf)
Parameters
array$conf
Exceptions
MWException

Definition at line 59 of file PoolCounterConnectionManager.php.

Member Function Documentation

◆ close()

MediaWiki\PoolCounter\PoolCounterConnectionManager::close ( $conn)
Parameters
resource$conn

Definition at line 148 of file PoolCounterConnectionManager.php.

◆ get()

MediaWiki\PoolCounter\PoolCounterConnectionManager::get ( $key)
Parameters
string$key
Returns
Status

Definition at line 72 of file PoolCounterConnectionManager.php.

References $hashes, and wfDebug().

Member Data Documentation

◆ $connect_timeout

int MediaWiki\PoolCounter\PoolCounterConnectionManager::$connect_timeout

Definition at line 43 of file PoolCounterConnectionManager.php.

◆ $conns

array MediaWiki\PoolCounter\PoolCounterConnectionManager::$conns = []

Definition at line 37 of file PoolCounterConnectionManager.php.

◆ $host

MediaWiki\PoolCounter\PoolCounterConnectionManager::$host
Access: internal
Public for testing only

Definition at line 48 of file PoolCounterConnectionManager.php.

◆ $hostNames

string [] MediaWiki\PoolCounter\PoolCounterConnectionManager::$hostNames

Definition at line 35 of file PoolCounterConnectionManager.php.

◆ $port

MediaWiki\PoolCounter\PoolCounterConnectionManager::$port
Access: internal
Public for testing only

Definition at line 53 of file PoolCounterConnectionManager.php.

◆ $refCounts

array MediaWiki\PoolCounter\PoolCounterConnectionManager::$refCounts = []

Definition at line 39 of file PoolCounterConnectionManager.php.

◆ $timeout

float MediaWiki\PoolCounter\PoolCounterConnectionManager::$timeout

Definition at line 41 of file PoolCounterConnectionManager.php.


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