mirror of https://github.com/apache/activemq.git
Polished
This commit is contained in:
parent
06356db1c4
commit
af1edf4588
|
@ -44,7 +44,10 @@ public final class Scheduler extends ServiceSupport {
|
||||||
/*
|
/*
|
||||||
* execute on rough schedule based on termination of last execution. There is no
|
* execute on rough schedule based on termination of last execution. There is no
|
||||||
* compensation (two runs in quick succession) for delays
|
* compensation (two runs in quick succession) for delays
|
||||||
|
*
|
||||||
|
* @deprecated use {@link #executePeriodically}
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public synchronized void schedualPeriodically(final Runnable task, long period) {
|
public synchronized void schedualPeriodically(final Runnable task, long period) {
|
||||||
TimerTask timerTask = new SchedulerTimerTask(task);
|
TimerTask timerTask = new SchedulerTimerTask(task);
|
||||||
timer.schedule(timerTask, period, period);
|
timer.schedule(timerTask, period, period);
|
||||||
|
|
Loading…
Reference in New Issue