TaskScheduler no longer defines a setErrorHandler() method.
This commit is contained in:
@@ -317,7 +317,9 @@ public class DefaultMessageBus implements MessageBus, ApplicationContextAware, A
|
||||
for (Lifecycle gateway : this.lifecycleGateways) {
|
||||
gateway.start();
|
||||
}
|
||||
this.taskScheduler.setErrorHandler(new MessagePublishingErrorHandler(this.getErrorChannel()));
|
||||
if (this.taskScheduler instanceof ProviderTaskScheduler) {
|
||||
((ProviderTaskScheduler) this.taskScheduler).setErrorHandler(new MessagePublishingErrorHandler(this.getErrorChannel()));
|
||||
}
|
||||
this.taskScheduler.start();
|
||||
}
|
||||
this.running = true;
|
||||
|
||||
@@ -33,6 +33,4 @@ public interface TaskScheduler extends SchedulingTaskExecutor, Lifecycle {
|
||||
|
||||
boolean cancel(Runnable task, boolean mayInterruptIfRunning);
|
||||
|
||||
void setErrorHandler(ErrorHandler errorHandler);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user