3 use Liuggio\StatsdClient\Entity\StatsdData
;
4 use Liuggio\StatsdClient\Factory\StatsdDataFactoryInterface
;
7 * MediaWiki adaptation of StatsdDataFactory that provides buffering functionality.
9 * @see BufferingStatsdDataFactory
11 interface IBufferingStatsdDataFactory
extends StatsdDataFactoryInterface
{
13 * Check whether this data factory has any buffered data.
16 public function hasData();
19 * Return the buffered data from the factory.
20 * @return StatsdData[]
22 public function getData();
25 * Clear all buffered data from the factory
28 public function clearData();
31 * Return the number of buffered statsd data entries
35 public function getDataCount();
38 * Set collection enable status.
39 * @param bool $enabled Will collection be enabled?
42 public function setEnabled( $enabled );