TimerTask task = new SendStatsTimerTask();
task = new SendStatsTimerTask();  timer.schedule(task, delay, period);
   public synchronized void start() throws Exception   {      if (started)      {         return;      }            //Needs to be daemon      timer = new Timer(true);            //Add a random delay to prevent all timers starting at once      long delay = (long)(period * Math.random());            TimerTask task = new SendStatsTimerTask();            timer.schedule(task, delay, period);         }