⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 threadmanager.java

📁 这个weblogging 设计得比较精巧
💻 JAVA
字号:
package org.roller.model;import java.util.TimerTask;import java.sql.Date;/** * Thread management for executing scheduled and asynchronous tasks. */public interface ThreadManager{    public static final long MIN_RATE_INTERVAL_MINS = 1;    /**     * Execute runnable in background (asynchronously).     * @param runnable      * @throws java.lang.InterruptedException      */    public void executeInBackground(Runnable runnable)            throws InterruptedException;    /**     * Execute runnable in foreground (synchronously).     */    public void executeInForeground(Runnable runnable)            throws InterruptedException;    /**     * Schedule task to run once a day.     */    public void scheduleDailyTimerTask(TimerTask task);    /**     * Schedule task to run once per hour.     */    public void scheduleHourlyTimerTask(TimerTask task);    /**     * Schedule task to run at fixed rate.     */    public void scheduleFixedRateTimerTask(TimerTask task, long delayMins, long periodMins);    /**     * Shutdown     */    public void shutdown();    /**     * Release all resources associated with Roller session.     */    public void release();}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -