Examples of AsyncTaskExecutor


Examples of org.springframework.core.task.AsyncTaskExecutor

      when(propertyContext.getStepProperties("step" + i)).thenReturn(props);
    }

    List<Future<StepContext>> stepContexts = new ArrayList<Future<StepContext>>();

    AsyncTaskExecutor executor = new SimpleAsyncTaskExecutor();

    for(int i = 0; i < 4; i++) {
      final long count = i;
      stepContexts.add(executor.submit(new Callable<StepContext>() {

        @Override
        public StepContext call() throws Exception {
          try {
            StepSynchronizationManager.register(new StepExecution("step" + count, new JobExecution(count)));
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.