// 设置定时器检测状态
Timer timer = new Timer("timer");
TimerTask timerTask = new TimerTask() {
@Override
public void run() {
}
};
timer.schedule(timerTask, 0, 3000);
// 设置定时器检测状态
Timer timer = new Timer("timer");
TimerTask timerTask = new TimerTask() {
@Override
public void run() {
}
};
timer.schedule(timerTask, 0, 3000);