Package org.springframework.scheduling.concurrent

Examples of org.springframework.scheduling.concurrent.ConcurrentTaskExecutor$ManagedTaskBuilder


    // if these tests starts to fail or cause other timing
    // problems, we need to find a better way to run
    // test without adding too long sleeps

    TaskScheduler taskScheduler = new ConcurrentTaskScheduler();
    TaskExecutor taskExecutor = new ConcurrentTaskExecutor();
    TestPollingTaskSupport poller = new TestPollingTaskSupport(taskScheduler, taskExecutor);
    IdleTimeoutTrigger trigger = new IdleTimeoutTrigger(1000);
    poller.setTrigger(trigger);
    poller.init();
    poller.start();
View Full Code Here


        return executor;
    }

    @Bean
    public Executor resourceBuilderExecutor() {
        ConcurrentTaskExecutor concurrentTaskExecutor = new ConcurrentTaskExecutor();
        concurrentTaskExecutor.setConcurrentExecutor(getAsyncExecutor());
        return concurrentTaskExecutor;
    }
View Full Code Here

      configurer.favorParameter(true).parameterName("f");
    }

    @Override
    public void configureAsyncSupport(AsyncSupportConfigurer configurer) {
      configurer.setDefaultTimeout(2500).setTaskExecutor(new ConcurrentTaskExecutor())
        .registerCallableInterceptors(new CallableProcessingInterceptorAdapter() { })
        .registerDeferredResultInterceptors(new DeferredResultProcessingInterceptorAdapter() {});
    }
View Full Code Here

        return null;
      }
    };

    factory.setItemReader(reader);
    factory.setTaskExecutor(new ConcurrentTaskExecutor());

    Step step = factory.getObject();

    step.execute(stepExecution);
View Full Code Here

TOP

Related Classes of org.springframework.scheduling.concurrent.ConcurrentTaskExecutor$ManagedTaskBuilder

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.