1 package org.roller.model; 2 3 import java.util.TimerTask ; 4 import java.sql.Date ; 5 6 9 public interface ThreadManager 10 { 11 public static final long MIN_RATE_INTERVAL_MINS = 1; 12 13 18 public void executeInBackground(Runnable runnable) 19 throws InterruptedException ; 20 21 24 public void executeInForeground(Runnable runnable) 25 throws InterruptedException ; 26 27 30 public void scheduleDailyTimerTask(TimerTask task); 31 32 35 public void scheduleHourlyTimerTask(TimerTask task); 36 37 40 public void scheduleFixedRateTimerTask(TimerTask task, long delayMins, long periodMins); 41 42 45 public void shutdown(); 46 47 50 public void release(); 51 } | Popular Tags |