Interface Timer

    • Method Detail

      • schedule

        TimerTask schedule​(long delayInMillis,
                           Runnable task)
        Schedules the task to be executed in delayInMillis on this timer's default Executor.

        Equivalent to schedule(delayInMillis, task, null).

      • schedule

        TimerTask schedule​(long delayInMillis,
                           Runnable task,
                           Executor executor)
        Schedules the task to be executed in delayInMillis on given executor. If executor is null, this timer's default executor is used.