wiki.techinc.nl/includes/libs/stats/IBufferingStatsdDataFactory.php
daniel e6e0ad2472 Replace "@stable for implementation" with "@stable to implement"
For compliance with the new version of the table interface policy
(T255803).

This patch was created by an automated search & replace operation
on the includes/ directory.

Bug: T257789
Change-Id: I17e5e92e24c708ffc846945a136347670a3a20c7
2020-07-13 11:05:49 +02:00

45 lines
960 B
PHP

<?php
use Liuggio\StatsdClient\Entity\StatsdData;
use Liuggio\StatsdClient\Factory\StatsdDataFactoryInterface;
/**
* MediaWiki adaptation of StatsdDataFactory that provides buffering functionality.
*
* @stable to implement
*
* @see BufferingStatsdDataFactory
*/
interface IBufferingStatsdDataFactory extends StatsdDataFactoryInterface {
/**
* Check whether this data factory has any buffered data.
* @return bool
*/
public function hasData();
/**
* Return the buffered data from the factory.
* @return StatsdData[]
*/
public function getData();
/**
* Clear all buffered data from the factory
* @since 1.31
*/
public function clearData();
/**
* Return the number of buffered statsd data entries
* @return int
* @since 1.31
*/
public function getDataCount();
/**
* Set collection enable status.
* @param bool $enabled Will collection be enabled?
* @return void
*/
public function setEnabled( $enabled );
}