Class StatisticsSender


  • public class StatisticsSender
    extends Object
    Handles sending of telemetry data.
    • Constructor Detail

      • StatisticsSender

        public StatisticsSender​(StatisticsStorage storage)
        Creates a new instance connected to the given storage.
        Parameters:
        storage - the storage to use
    • Method Detail

      • triggerSendIfNeeded

        public void triggerSendIfNeeded​(com.fasterxml.jackson.databind.node.ObjectNode json)
        Send data in the background if needed.
        Parameters:
        json - The json returned by StatisticsStorage.read()