MediaWiki REL1_34
IBufferingStatsdDataFactory.php
Go to the documentation of this file.
1<?php
2
3use Liuggio\StatsdClient\Entity\StatsdData;
4use Liuggio\StatsdClient\Factory\StatsdDataFactoryInterface;
5
11interface IBufferingStatsdDataFactory extends StatsdDataFactoryInterface {
16 public function hasData();
17
22 public function getData();
23
28 public function clearData();
29
35 public function getDataCount();
36
42 public function setEnabled( $enabled );
43}
MediaWiki adaptation of StatsdDataFactory that provides buffering functionality.
hasData()
Check whether this data factory has any buffered data.
clearData()
Clear all buffered data from the factory.
setEnabled( $enabled)
Set collection enable status.
getData()
Return the buffered data from the factory.
getDataCount()
Return the number of buffered statsd data entries.