Package org.springframework.scheduling.support

Examples of org.springframework.scheduling.support.CronTrigger


    threadPoolTaskScheduler = new ThreadPoolTaskScheduler();
    threadPoolTaskScheduler.setThreadNamePrefix("SpringCronJob");
    threadPoolTaskScheduler.initialize();

    threadPoolTaskScheduler.schedule(this, new CronTrigger(cronExpression));
  }
View Full Code Here


    threadPoolTaskScheduler = new ThreadPoolTaskScheduler();
    threadPoolTaskScheduler.setThreadNamePrefix("SpringCronJob");
    threadPoolTaskScheduler.initialize();

    threadPoolTaskScheduler.schedule(this, new CronTrigger(cronExpression));
  }
View Full Code Here

    @Override
    protected void doStart() throws Exception {
        ObjectHelper.notEmpty(cron, "cron", this);

        trigger = new CronTrigger(getCron(), getTimeZone());

        if (taskScheduler == null) {
            taskScheduler = new CamelThreadPoolTaskScheduler(getCamelContext(), consumer, consumer.getEndpoint().getEndpointUri());
            taskScheduler.afterPropertiesSet();
            destroyTaskScheduler = true;
View Full Code Here

                    logger.error("execute task fail", e);
                }
                logger.info("execute task success,use {} (second) , project={} , taskName={}",
                    new Object[]{(System.currentTimeMillis()-startTime)/1000, projectName,task.getName()});
            }
        }, new CronTrigger(task.getCron()));
        logger.info("add a new task {}", taskKey);
        futures.put(taskKey, future);
    }
View Full Code Here

  Trigger build(String triggerExpression) {

    Trigger trigger = null;
    try {
      trigger = new CronTrigger(triggerExpression);
    } catch (Exception e) {
      // simply, not a cron!
    }

    if (triggerExpression != null && trigger == null) {
View Full Code Here

TOP

Related Classes of org.springframework.scheduling.support.CronTrigger

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.