mirror of https://github.com/apache/activemq.git
Don't use the scheduleAtFixedRate method in our scheduler as we don't really have a need for real time task execution, just use the fixed delay scheduler so that jobs don't stack up. git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1174952 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1453c53105
commit
ca90cc7b8c
|
@ -35,7 +35,7 @@ public final class Scheduler {
|
|||
|
||||
public static synchronized void executePeriodically(final Runnable task, long period) {
|
||||
TimerTask timerTask = new SchedulerTimerTask(task);
|
||||
CLOCK_DAEMON.scheduleAtFixedRate(timerTask, period, period);
|
||||
CLOCK_DAEMON.schedule(timerTask, period, period);
|
||||
TIMER_TASKS.put(task, timerTask);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue