Package it.sauronsoftware.cron4j

Examples of it.sauronsoftware.cron4j.TaskCollector


  public void contextInitialized(ServletContextEvent event) {
    ServletContext context = event.getServletContext();
    // 1. Creates the scheduler.
    Scheduler scheduler = new Scheduler();
    // 2. Registers a custom task collector.
    TaskCollector collector = new MyTaskCollector();
    scheduler.addTaskCollector(collector);
    // 3. Starts the scheduler.
    scheduler.start();
    // 4. Registers the scheduler.
    context.setAttribute(Constants.SCHEDULER, scheduler);
View Full Code Here

TOP

Related Classes of it.sauronsoftware.cron4j.TaskCollector

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.