MediaWiki  master
IBufferingStatsdDataFactory.php
Go to the documentation of this file.
1 <?php
2 
3 use Liuggio\StatsdClient\Entity\StatsdData;
4 use Liuggio\StatsdClient\Factory\StatsdDataFactoryInterface;
5 
11 interface 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 }
IBufferingStatsdDataFactory\clearData
clearData()
Clear all buffered data from the factory.
IBufferingStatsdDataFactory\setEnabled
setEnabled( $enabled)
Set collection enable status.
IBufferingStatsdDataFactory\hasData
hasData()
Check whether this data factory has any buffered data.
IBufferingStatsdDataFactory\getData
getData()
Return the buffered data from the factory.
IBufferingStatsdDataFactory
MediaWiki adaptation of StatsdDataFactory that provides buffering functionality.
Definition: IBufferingStatsdDataFactory.php:11
IBufferingStatsdDataFactory\getDataCount
getDataCount()
Return the number of buffered statsd data entries.