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