TimerInterface.java
01 /*
02  * Created on Jun 20, 2004
03  *
04  * To change the template for this generated file go to
05  * Window - Preferences - Java - Code Generation - Code and Comments
06  */
07 package biz.xsoftware.examples.timer;
08 
09 import java.util.Date;
10 import java.util.TimerTask;
11 
12 /**
13  * A user created Timer interface to make testing easier.
14  
15  @author Dean Hiller
16  */
17 public interface TimerInterface {
18 
19   public void cancelTask(TimerTask task);
20   public void cancel();
21   public int purge();
22   public void schedule(TimerTask task, Date time);
23   public void schedule(TimerTask task, Date firstTime, long period)
24   public void schedule(TimerTask task, long delay);
25   public void schedule(TimerTask task, long delay, long period;
26   public void scheduleAtFixedRate(TimerTask task, Date firstTime, long period)
27   public void scheduleAtFixedRate(TimerTask task, long delay, long period);
28   
29 }