1 18 package org.apache.roller.model; 19 20 import java.util.TimerTask ; 21 import java.sql.Date ; 22 23 26 public interface ThreadManager 27 { 28 public static final long MIN_RATE_INTERVAL_MINS = 1; 29 30 35 public void executeInBackground(Runnable runnable) 36 throws InterruptedException ; 37 38 41 public void executeInForeground(Runnable runnable) 42 throws InterruptedException ; 43 44 47 public void scheduleDailyTimerTask(TimerTask task); 48 49 52 public void scheduleHourlyTimerTask(TimerTask task); 53 54 57 public void scheduleFixedRateTimerTask(TimerTask task, long delayMins, long periodMins); 58 59 62 public void shutdown(); 63 64 67 public void release(); 68 } | Popular Tags |