Merge "Show a warning in edit preview when a template loop is detected"
[lhc/web/wiklou.git] / includes / libs / rdbms / loadmonitor / ILoadMonitor.php
index 14a52c5..a0877a4 100644 (file)
  * @file
  * @ingroup Database
  */
+
+namespace Wikimedia\Rdbms;
+
 use Psr\Log\LoggerAwareInterface;
+use BagOStuff;
+use WANObjectCache;
 
 /**
  * An interface for database load monitoring
@@ -33,11 +38,11 @@ interface ILoadMonitor extends LoggerAwareInterface {
         *
         * @param ILoadBalancer $lb LoadBalancer this instance serves
         * @param BagOStuff $sCache Local server memory cache
-        * @param BagOStuff $cCache Local cluster memory cache
+        * @param WANObjectCache $wCache Local cluster memory cache
         * @param array $options Options map
         */
        public function __construct(
-               ILoadBalancer $lb, BagOStuff $sCache, BagOStuff $cCache, array $options = []
+               ILoadBalancer $lb, BagOStuff $sCache, WANObjectCache $wCache, array $options = []
        );
 
        /**
@@ -53,7 +58,7 @@ interface ILoadMonitor extends LoggerAwareInterface {
         *
         * Values may be "false" if replication is too broken to estimate
         *
-        * @param integer[] $serverIndexes
+        * @param int[] $serverIndexes
         * @param string $domain
         * @return array Map of (server index => float|int|bool)
         */