Skip to content
Snippets Groups Projects
Commit b39d294b authored by brinn's avatar brinn
Browse files

change: replace scheduling at fixed rate with scheduling at fixed time since...

change: replace scheduling at fixed rate with scheduling at fixed time since in general the idle time should be small compared to the working time and it allows the recovery cycle to be performed quicker

SVN: 1947
parent 55cfa9ec
No related branches found
No related tags found
No related merge requests found
......@@ -39,11 +39,7 @@ public class DataMoverProcess implements ITerminable
*/
public void startup(long delay, long period)
{
// The moving task is scheduled at fixed rate. It makes sense especially if the task is moving data from the
// remote share. The rationale behind this is that if new items are
// added to the source directory while the incoming timer task has been running for a long time, busy moving
// data, the task shouldn't sit idle for the check time when there is actually work to do.
timer.scheduleAtFixedRate(dataMoverTimerTask, delay, period);
timer.schedule(dataMoverTimerTask, delay, period);
}
public boolean terminate()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment