1 22 package org.jboss.resource.spi.timer; 23 24 import java.util.Date ; 25 26 41 public interface TimerManager 42 { 43 44 58 public Timer schedule(TimerListener listener, Date time); 59 60 61 69 public Timer schedule(TimerListener listener, Date time, long period); 70 71 78 public Timer schedule(TimerListener listener, long delay); 79 80 88 public Timer schedule(TimerListener listener, long delay, long period) ; 89 90 96 public Timer schedule(TimerExcecutionContext context); 97 98 106 public Timer schedule(TimerListener listener, Date time, TimerPeriod period); 107 108 116 public Timer schedule(TimerListener listener, TimerDate time, TimerPeriod period); 117 118 123 public void cancelTimer(Timer timer); 124 125 130 public void cancelTimer(String timerName); 131 132 133 137 public void stop(); 138 139 143 public void suspend(); 144 145 149 public void resume(); 150 151 156 public boolean isSuspending(); 157 158 159 164 public boolean isStopped(); 165 166 167 } 168 | Popular Tags |