Package org.springframework.core.task

Examples of org.springframework.core.task.SyncTaskExecutor


      return new LoggingAction("as bean");
    }

    @Bean
    public TaskExecutor taskExecutor() {
      return new SyncTaskExecutor();
    }
View Full Code Here


      return new TestAction();
    }

    @Bean
    public TaskExecutor taskExecutor() {
      return new SyncTaskExecutor();
    }
View Full Code Here

          .event(TestEvents.E1);
    }

    @Bean
    public TaskExecutor taskExecutor() {
      return new SyncTaskExecutor();
    }
View Full Code Here

          .target(TestStates.S3);
    }

    @Bean
    public TaskExecutor taskExecutor() {
      return new SyncTaskExecutor();
    }
View Full Code Here

      return new TestCountAction();
    }

    @Bean
    public TaskExecutor taskExecutor() {
      return new SyncTaskExecutor();
    }
View Full Code Here

     * @see org.springframework.core.task.SyncTaskExecutor
     * @see org.springframework.core.task.SimpleAsyncTaskExecutor
     * @see org.springframework.scheduling.timer.TimerTaskExecutor
     */
    public final void setTaskExecutor(TaskExecutor taskExecutor) {
        this.taskExecutor = (taskExecutor != null ? taskExecutor : new SyncTaskExecutor());
    }
View Full Code Here

   * @see org.springframework.core.task.SyncTaskExecutor
   * @see org.springframework.core.task.SimpleAsyncTaskExecutor
   * @see org.springframework.scheduling.timer.TimerTaskExecutor
   */
  public void setTaskExecutor(TaskExecutor taskExecutor) {
    this.taskExecutor = (taskExecutor != null ? taskExecutor : new SyncTaskExecutor());
  }
View Full Code Here

   * @see org.springframework.core.task.SyncTaskExecutor
   * @see org.springframework.core.task.SimpleAsyncTaskExecutor
   * @see org.springframework.scheduling.timer.TimerTaskExecutor
   */
  public void setTaskExecutor(TaskExecutor taskExecutor) {
    this.taskExecutor = (taskExecutor != null ? taskExecutor : new SyncTaskExecutor());
  }
View Full Code Here

        eventCollector.setDefaultInterval(500);
        eventCollector.getFilters().add(new StringContentFilter());
        eventCollector.getHandlers().add(new ContentLengthHandler());
        eventCollector.setEventsPerMessageCall(2);
        eventCollector.setQueue(queue);
        TaskExecutor executor = new SyncTaskExecutor();
        eventCollector.setExecutor(executor);
        MockService monitoringService = new MockService();
        eventCollector.setMonitoringServiceClient(monitoringService);

        // Add events
View Full Code Here

  public void afterPropertiesSet() throws Exception {
    Assert.state(repository != null, "A JobRepository has not been set.");
    if (taskExecutor == null) {
      log.info("No TaskExecutor has been set, defaulting to synchronous executor.");
      taskExecutor = new SyncTaskExecutor();
    }
  }
View Full Code Here

TOP

Related Classes of org.springframework.core.task.SyncTaskExecutor

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.