Merge "maintenance: Script to rename titles for Unicode uppercasing changes"
[lhc/web/wiklou.git] / includes / libs / stats / IBufferingStatsdDataFactory.php
1 <?php
2
3 use Liuggio\StatsdClient\Entity\StatsdData;
4 use Liuggio\StatsdClient\Factory\StatsdDataFactoryInterface;
5
6 /**
7 * MediaWiki adaptation of StatsdDataFactory that provides buffering functionality.
8 *
9 * @see BufferingStatsdDataFactory
10 */
11 interface IBufferingStatsdDataFactory extends StatsdDataFactoryInterface {
12 /**
13 * Check whether this data factory has any buffered data.
14 * @return bool
15 */
16 public function hasData();
17
18 /**
19 * Return the buffered data from the factory.
20 * @return StatsdData[]
21 */
22 public function getData();
23
24 /**
25 * Clear all buffered data from the factory
26 * @since 1.31
27 */
28 public function clearData();
29
30 /**
31 * Return the number of buffered statsd data entries
32 * @return int
33 * @since 1.31
34 */
35 public function getDataCount();
36
37 /**
38 * Set collection enable status.
39 * @param bool $enabled Will collection be enabled?
40 * @return void
41 */
42 public function setEnabled( $enabled );
43 }