Examples of ConcurrentTaskExecutor


Examples of org.springframework.scheduling.concurrent.ConcurrentTaskExecutor

    // 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

Examples of org.springframework.scheduling.concurrent.ConcurrentTaskExecutor

        return executor;
    }

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

Examples of org.springframework.scheduling.concurrent.ConcurrentTaskExecutor

      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

Examples of org.springframework.scheduling.concurrent.ConcurrentTaskExecutor

        return null;
      }
    };

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

    Step step = factory.getObject();

    step.execute(stepExecution);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.