X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Flibs%2Fstats%2FIBufferingStatsdDataFactory.php;h=77b4c3528a226b998ab1a348d7aa02186f5ea229;hb=5cd37c7a64e9abb4fdadb9c3ae10c672bdc40c11;hp=64ee2676f6f68c6da897258285d54c8575780718;hpb=1a81ba9bcb801de0be82fbd44332dada53800879;p=lhc%2Fweb%2Fwiklou.git 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 ); - }