|
|
|
@ -254,6 +254,10 @@ public abstract class AbstractMessageBrokerConfiguration implements ApplicationC |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private TaskExecutor defaultTaskExecutor() { |
|
|
|
|
|
|
|
return new TaskExecutorRegistration().getTaskExecutor(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private static TaskExecutor getTaskExecutor(ChannelRegistration registration, |
|
|
|
private static TaskExecutor getTaskExecutor(ChannelRegistration registration, |
|
|
|
String threadNamePrefix, Supplier<TaskExecutor> fallback) { |
|
|
|
String threadNamePrefix, Supplier<TaskExecutor> fallback) { |
|
|
|
|
|
|
|
|
|
|
|
@ -261,10 +265,6 @@ public abstract class AbstractMessageBrokerConfiguration implements ApplicationC |
|
|
|
executor -> setThreadNamePrefix(executor, threadNamePrefix)); |
|
|
|
executor -> setThreadNamePrefix(executor, threadNamePrefix)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private TaskExecutor defaultTaskExecutor() { |
|
|
|
|
|
|
|
return new TaskExecutorRegistration().getTaskExecutor(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private static void setThreadNamePrefix(TaskExecutor taskExecutor, String name) { |
|
|
|
private static void setThreadNamePrefix(TaskExecutor taskExecutor, String name) { |
|
|
|
if (taskExecutor instanceof CustomizableThreadCreator ctc) { |
|
|
|
if (taskExecutor instanceof CustomizableThreadCreator ctc) { |
|
|
|
ctc.setThreadNamePrefix(name); |
|
|
|
ctc.setThreadNamePrefix(name); |
|
|
|
|