rdbms: Avoid selectDB() call in LoadMonitor new connections
[mediawiki.git] / includes / libs / stats / IBufferingStatsdDataFactory.php
blob64ee2676f6f68c6da897258285d54c8575780718
1 <?php
2 use Liuggio\StatsdClient\Entity\StatsdData;
3 use Liuggio\StatsdClient\Factory\StatsdDataFactoryInterface;
5 /**
6 * MediaWiki adaptation of StatsdDataFactory that provides buffering functionality.
8 * @see BufferingStatsdDataFactory
9 */
10 interface IBufferingStatsdDataFactory extends StatsdDataFactoryInterface {
11 /**
12 * Check whether this data factory has any data.
13 * @return boolean
15 public function hasData();
17 /**
18 * Return data from the factory.
19 * @return StatsdData[]
21 public function getData();
23 /**
24 * Set collection enable status.
25 * @param bool $enabled Will collection be enabled?
26 * @return void
28 public function setEnabled( $enabled );