MediaWiki REL1_39
IBufferingStatsdDataFactory.php
Go to the documentation of this file.
1<?php
2
3use Liuggio\StatsdClient\Entity\StatsdData;
4use Liuggio\StatsdClient\Factory\StatsdDataFactoryInterface;
5
13interface IBufferingStatsdDataFactory extends StatsdDataFactoryInterface {
18 public function hasData();
19
24 public function getData();
25
30 public function clearData();
31
37 public function getDataCount();
38
44 public function setEnabled( $enabled );
45}
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.