/** * Configure the thread pool backing this message channel using a custom * ThreadPoolTaskExecutor. * @param taskExecutor the executor to use (or {@code null} for a default executor) */ public TaskExecutorRegistration taskExecutor(@Nullable ThreadPoolTaskExecutor taskExecutor) { if (this.registration == null) { this.registration = (taskExecutor != null ? new TaskExecutorRegistration(taskExecutor) : new TaskExecutorRegistration()); } return this.registration; }
/** * Configure the thread pool backing this message channel using a custom * ThreadPoolTaskExecutor. * @param taskExecutor the executor to use (or {@code null} for a default executor) */ public TaskExecutorRegistration taskExecutor(@Nullable ThreadPoolTaskExecutor taskExecutor) { if (this.registration == null) { this.registration = (taskExecutor != null ? new TaskExecutorRegistration(taskExecutor) : new TaskExecutorRegistration()); } return this.registration; }
/** * Configure the thread pool backing this message channel using a custom * ThreadPoolTaskExecutor. * @param taskExecutor the executor to use (or {@code null} for a default executor) */ public TaskExecutorRegistration taskExecutor(@Nullable ThreadPoolTaskExecutor taskExecutor) { if (this.registration == null) { this.registration = (taskExecutor != null ? new TaskExecutorRegistration(taskExecutor) : new TaskExecutorRegistration()); } return this.registration; }
/** * Configure the thread pool backing this message channel using a custom * ThreadPoolTaskExecutor. * @param taskExecutor the executor to use (or {@code null} for a default executor) */ public TaskExecutorRegistration taskExecutor(@Nullable ThreadPoolTaskExecutor taskExecutor) { if (this.registration == null) { this.registration = (taskExecutor != null ? new TaskExecutorRegistration(taskExecutor) : new TaskExecutorRegistration()); } return this.registration; }