Package nl.topicus.onderwijs.dashboard.modules

Examples of nl.topicus.onderwijs.dashboard.modules.ServiceConfiguration


    if (!isEnabled()) {
      enabled = true;
      timer = Executors.newScheduledThreadPool(4);
      log.info("(Re)scheduling timer tasks");
      for (Retriever curRetriever : retrievers) {
        ServiceConfiguration config = curRetriever.getClass()
            .getAnnotation(ServiceConfiguration.class);
        if (config.runInRandomMode()
            || application.getMode() == DashboardMode.LiveData) {
          timer.scheduleWithFixedDelay(new TimerTask(curRetriever),
              0, config.interval(), config.unit());
        }
      }
    }
  }
View Full Code Here

TOP

Related Classes of nl.topicus.onderwijs.dashboard.modules.ServiceConfiguration

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.