01: /**
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */package com.tc.util;
04:
05: import java.util.Date;
06: import java.util.TimerTask;
07:
08: /**
09: * Interface that mirrors java.util.Timer
10: *
11: * @author orion
12: */
13: public interface TCTimer {
14:
15: public void cancel();
16:
17: public void schedule(TimerTask task, long delay);
18:
19: public void schedule(TimerTask task, Date time);
20:
21: public void schedule(TimerTask task, long delay, long period);
22:
23: public void schedule(TimerTask task, Date firstTime, long period);
24:
25: public void scheduleAtFixedRate(TimerTask task, long delay,
26: long period);
27:
28: public void scheduleAtFixedRate(TimerTask task, Date firstTime,
29: long period);
30: }
|