void () { if (mySchedulerHandle != null) { mySchedulerHandle.cancel(false); } mySchedulerHandle = JobScheduler.getScheduler().scheduleWithFixedDelay(this, mySleepTime, mySleepTime, TimeUnit.MILLISECONDS); }