![JAR search and dependency download from the Maven repository](/logo.png)
cn.t.util.common.TaskUtil Maven / Gradle / Ivy
package cn.t.util.common;
import cn.t.util.common.schedule.FixedTimerTask;
import java.util.Timer;
public class TaskUtil {
public static Timer createFixedTimerTask(int period, int delay, Runnable runnable) {
Timer timer = new Timer();
timer.schedule(new FixedTimerTask(runnable), delay, period);
return timer;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy