📄 timerservice.java
字号:
/* * @author <a href="mailto:kisg@mailbox.hu">Gergely Kis</a> * @author <a href="mailto:novotny@gridsphere.org">Jason Novotny</a> * @version $Id: TimerService.java 4496 2006-02-08 20:27:04Z wehrens $ */package org.gridsphere.services.core.timer;import java.util.Date;import java.util.TimerTask;/** * Service to perform tasks at a given time or periodically. */public interface TimerService { void schedule(String timerId, TimerTask task, Date time); void schedule(String timerId, TimerTask task, long delay, long period); void schedule(String timerId, TimerTask task, Date firstTime, long period); void scheduleAtFixedRate(String timerId, TimerTask task, long delay, long period); void scheduleAtFixedRate(String timerId, TimerTask task, Date firstTime, long period); void cancel(String timerId);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -