Package org.apache.camel.routepolicy.quartz

Examples of org.apache.camel.routepolicy.quartz.CronScheduledRoutePolicy


    @Override
    protected RouteBuilder createRouteBuilder() throws Exception {
        return new RouteBuilder() {
            @Override
            public void configure() throws Exception {
                CronScheduledRoutePolicy policy = new CronScheduledRoutePolicy();
                policy.setRouteStartTime("* 0/2 * * * ?");
                policy.setRouteStopTime("* 1/2 * * * ?");
                policy.setRouteStopGracePeriod(250);
                policy.setTimeUnit(TimeUnit.SECONDS);

                from(ftp)
                    .noAutoStartup().routePolicy(policy).shutdownRunningTask(ShutdownRunningTask.CompleteAllTasks)
                    .log("Processing ${file:name}")
                    .to("log:done");
View Full Code Here


    @Override
    protected RouteBuilder createRouteBuilder() throws Exception {
        return new RouteBuilder() {
            @Override
            public void configure() throws Exception {
                CronScheduledRoutePolicy policy = new CronScheduledRoutePolicy();
                policy.setRouteStartTime("* 0/2 * * * ?");
                policy.setRouteStopTime("* 1/2 * * * ?");
                policy.setRouteStopGracePeriod(250);
                policy.setTimeUnit(TimeUnit.SECONDS);

                from(ftp)
                    .noAutoStartup().routePolicy(policy).shutdownRunningTask(ShutdownRunningTask.CompleteAllTasks)
                    .log("Processing ${file:name}")
                    .to("log:done");
View Full Code Here

TOP

Related Classes of org.apache.camel.routepolicy.quartz.CronScheduledRoutePolicy

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.