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=64ee2676f6f68c6da897258285d54c8575780718;hb=7babd362babcbf7f20adb8e12edb4f4bc1d4249f;hpb=4a5f646a7fea7cbe0421c5cf38b72bae5c1bcf65 diff --git a/includes/libs/stats/IBufferingStatsdDataFactory.php b/includes/libs/stats/IBufferingStatsdDataFactory.php index 64ee2676f6..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. - * @return boolean + * 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 ); - }