public void start()
 {
     lock (this)
     {
         int periodMillis = pingManager.getPingPeriod();
         this.schedule = newSchedule();
         this.schedule.schedule(sendPingRequest, periodMillis, periodMillis);
     }
 }
 public void stop()
 {
     lock (this)
     {
         if (schedule != null)
         {
             this.schedule.stop();
         }
         this.schedule = null;
     }
 }
        private EzyScheduleAtFixedRate newSchedule()
        {
            EzyScheduleAtFixedRate answer = new EzyScheduleAtFixedRate("ezyfox-ping-schedule");

            return(answer);
        }