Java Timer Usage schedule(TimerTask task, long delay, long period, String name)

Here you can find the source of schedule(TimerTask task, long delay, long period, String name)

Description

schedule

License

Open Source License

Declaration

public static void schedule(TimerTask task, long delay, long period, String name) 

Method Source Code


//package com.java2s;
import java.util.Timer;
import java.util.TimerTask;

public class Main {

    public static void schedule(TimerTask task, long delay, long period, String name) {
        Timer timer = new Timer(name, true);
        timer.schedule(task, delay, period);
    }//from w w w . j  av  a 2  s. c  om
}

Related

  1. getTimer(String id)
  2. mayNewTasksBeScheduled(Timer timer)
  3. printLoadToConsole(int milliOffset)
  4. runRotateKeys()
  5. schedule(final TimerTask task, final int delay, final int period)
  6. startTimerWithDelayInMillis(TimerTask task, long millisToDelay, long intervalInMillis)
  7. stop(final TimerTask task)
  8. stopPrintStackTraces()
  9. timerTask(Runnable runnable)