Package com.agiletec.plugins.jpcontentnotifier.aps.system.services.contentnotifier.scheduler

Examples of com.agiletec.plugins.jpcontentnotifier.aps.system.services.contentnotifier.scheduler.Scheduler


    if (config.isActive()) {
      Date startTime = config.getStartScheduler();
      long milliSecondsDelay = config.getHoursDelay() * 3600000l; // x minuti secondi millisecondi
      startTime = this.calculateStartTime(startTime, milliSecondsDelay);
      Task task = new MailSenderTask(this);
      this._mailSenderScheduler = new Scheduler(task, startTime, milliSecondsDelay);
    }
  }
View Full Code Here


  protected void openScheduler() {
    NotifierConfig schedulerConfig = this.getConfig();
    if (schedulerConfig.isActive()) {
      long milliSecondsDelay = schedulerConfig.getHoursDelay() * 60 * 60 * 1000;
      Task task = new MailSenderTask(this);
      _mailSenderScheduler = new Scheduler(task, new Date(), milliSecondsDelay);
    }
  }
View Full Code Here

TOP

Related Classes of com.agiletec.plugins.jpcontentnotifier.aps.system.services.contentnotifier.scheduler.Scheduler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.