KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > util > TCTimer


1 /**
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.util;
5
6 import java.util.Date JavaDoc;
7 import java.util.TimerTask JavaDoc;
8
9 /**
10  * Interface that mirrors java.util.Timer
11  *
12  * @author orion
13  */

14 public interface TCTimer {
15
16   public void cancel();
17
18   public void schedule(TimerTask JavaDoc task, long delay);
19
20   public void schedule(TimerTask JavaDoc task, Date JavaDoc time);
21
22   public void schedule(TimerTask JavaDoc task, long delay, long period);
23
24   public void schedule(TimerTask JavaDoc task, Date JavaDoc firstTime, long period);
25
26   public void scheduleAtFixedRate(TimerTask JavaDoc task, long delay, long period);
27
28   public void scheduleAtFixedRate(TimerTask JavaDoc task, Date JavaDoc firstTime,
29                                   long period);
30 }
31
Popular Tags