MediaWiki master
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 = []
 
string $host
 
string[] $hostNames
 
int $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

Definition at line 60 of file PoolCounterConnectionManager.php.

Member Function Documentation

◆ close()

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

Definition at line 149 of file PoolCounterConnectionManager.php.

◆ get()

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

Definition at line 73 of file PoolCounterConnectionManager.php.

References 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

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

Definition at line 49 of file PoolCounterConnectionManager.php.

◆ $hostNames

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

Definition at line 35 of file PoolCounterConnectionManager.php.

◆ $port

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

Definition at line 55 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: