Polish
This commit is contained in:
@@ -254,6 +254,10 @@ public abstract class AbstractMessageBrokerConfiguration implements ApplicationC
|
||||
});
|
||||
}
|
||||
|
||||
private TaskExecutor defaultTaskExecutor() {
|
||||
return new TaskExecutorRegistration().getTaskExecutor();
|
||||
}
|
||||
|
||||
private static TaskExecutor getTaskExecutor(ChannelRegistration registration,
|
||||
String threadNamePrefix, Supplier<TaskExecutor> fallback) {
|
||||
|
||||
@@ -261,10 +265,6 @@ public abstract class AbstractMessageBrokerConfiguration implements ApplicationC
|
||||
executor -> setThreadNamePrefix(executor, threadNamePrefix));
|
||||
}
|
||||
|
||||
private TaskExecutor defaultTaskExecutor() {
|
||||
return new TaskExecutorRegistration().getTaskExecutor();
|
||||
}
|
||||
|
||||
private static void setThreadNamePrefix(TaskExecutor taskExecutor, String name) {
|
||||
if (taskExecutor instanceof CustomizableThreadCreator ctc) {
|
||||
ctc.setThreadNamePrefix(name);
|
||||
|
||||
@@ -107,6 +107,7 @@ public class ChannelRegistration {
|
||||
* @param fallback a supplier of a fallback task executor in case none is configured
|
||||
* @param customizer further customizations
|
||||
* @return the task executor to use
|
||||
* @since 6.1.4
|
||||
*/
|
||||
protected TaskExecutor getTaskExecutor(Supplier<TaskExecutor> fallback, Consumer<TaskExecutor> customizer) {
|
||||
if (this.executor != null) {
|
||||
|
||||
Reference in New Issue
Block a user