MediaWiki REL1_31
IBufferingStatsdDataFactory.php
Go to the documentation of this file.
1<?php
2use Liuggio\StatsdClient\Entity\StatsdData;
3use Liuggio\StatsdClient\Factory\StatsdDataFactoryInterface;
4
10interface IBufferingStatsdDataFactory extends StatsdDataFactoryInterface {
15 public function hasData();
16
21 public function getData();
22
27 public function clearData();
28
34 public function getDataCount();
35
41 public function setEnabled( $enabled );
42}
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.