Ejemplo n.º 1
0
 private void startTimer(final Config config) {
   TimedAction timedAction = new TimedAction();
   RepeatFrequency timerDelay = new TimerDelay(config);
   SimpleTimer timer = new DefaultTimer(timedAction, timerDelay.getFrequencyInMilliSeconds());
   logFrequencyInMinutes(timerDelay, config);
   timerStopper = new TimerStopper(timer, config.getLogProvider());
   timer.start();
 }
Ejemplo n.º 2
0
 private void logFrequencyInMinutes(final RepeatFrequency timerDelay, final Config config) {
   Logger logger = config.getLogProvider().provide(DefaultGuiController.class);
   logger.info("Using default timer delay of " + timerDelay.getFrequencyInMinutes() + " minutes.");
 }