2 use Liuggio\StatsdClient\Entity\StatsdData
;
3 use Liuggio\StatsdClient\Factory\StatsdDataFactoryInterface
;
6 * MediaWiki adaptation of StatsdDataFactory that provides buffering functionality.
8 * @see BufferingStatsdDataFactory
10 interface IBufferingStatsdDataFactory
extends StatsdDataFactoryInterface
{
12 * Check whether this data factory has any buffered data.
15 public function hasData();
18 * Return the buffered data from the factory.
19 * @return StatsdData[]
21 public function getData();
24 * Clear all buffered data from the factory
27 public function clearData();
30 * Return the number of buffered statsd data entries
34 public function getDataCount();
37 * Set collection enable status.
38 * @param bool $enabled Will collection be enabled?
41 public function setEnabled( $enabled );