MediaWiki master
IBufferingStatsdDataFactory.php
Go to the documentation of this file.
1<?php
2
3namespace Wikimedia\Stats;
4
5use Liuggio\StatsdClient\Entity\StatsdData;
6use Liuggio\StatsdClient\Factory\StatsdDataFactoryInterface;
7
15interface IBufferingStatsdDataFactory extends StatsdDataFactoryInterface {
20 public function hasData();
21
26 public function getData();
27
32 public function clearData();
33
39 public function getDataCount();
40
46 public function setEnabled( $enabled );
47}
48
50class_alias( IBufferingStatsdDataFactory::class, 'IBufferingStatsdDataFactory' );
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.