X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Flibs%2Fstats%2FIBufferingStatsdDataFactory.php;h=77b4c3528a226b998ab1a348d7aa02186f5ea229;hp=f77b26cefb543b16eab3ec83fef89245a322b74c;hb=11ee7f78da9776db26098642a151a288f98bea14;hpb=3e88f9fa2a5a00bc1330560accf8e9d09c8be42a diff --git a/includes/libs/stats/IBufferingStatsdDataFactory.php b/includes/libs/stats/IBufferingStatsdDataFactory.php index f77b26cefb..77b4c3528a 100644 --- a/includes/libs/stats/IBufferingStatsdDataFactory.php +++ b/includes/libs/stats/IBufferingStatsdDataFactory.php @@ -9,22 +9,34 @@ use Liuggio\StatsdClient\Factory\StatsdDataFactoryInterface; */ interface IBufferingStatsdDataFactory extends StatsdDataFactoryInterface { /** - * Check whether this data factory has any data. + * Check whether this data factory has any buffered data. * @return bool */ public function hasData(); /** - * Return data from the factory. + * 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 ); - }