2017-05-26 00:23:44 +00:00
|
|
|
<?php
|
|
|
|
|
use Liuggio\StatsdClient\Entity\StatsdData;
|
|
|
|
|
use Liuggio\StatsdClient\Factory\StatsdDataFactoryInterface;
|
|
|
|
|
|
|
|
|
|
/**
|
2017-07-08 00:19:39 +00:00
|
|
|
* MediaWiki adaptation of StatsdDataFactory that provides buffering functionality.
|
|
|
|
|
*
|
|
|
|
|
* @see BufferingStatsdDataFactory
|
2017-05-26 00:23:44 +00:00
|
|
|
*/
|
2017-07-08 00:19:39 +00:00
|
|
|
interface IBufferingStatsdDataFactory extends StatsdDataFactoryInterface {
|
2017-05-26 00:23:44 +00:00
|
|
|
/**
|
|
|
|
|
* Check whether this data factory has any data.
|
|
|
|
|
* @return boolean
|
|
|
|
|
*/
|
|
|
|
|
public function hasData();
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Return data from the factory.
|
|
|
|
|
* @return StatsdData[]
|
|
|
|
|
*/
|
|
|
|
|
public function getData();
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Set collection enable status.
|
|
|
|
|
* @param bool $enabled Will collection be enabled?
|
|
|
|
|
* @return void
|
|
|
|
|
*/
|
|
|
|
|
public function setEnabled( $enabled );
|
|
|
|
|
|
|
|
|
|
}
|