@@ -64,7 +64,7 @@ public class JmsHealthContributorAutoConfiguration
|
||||
}
|
||||
|
||||
private static SimpleAsyncTaskExecutor getTaskExecutor(Environment environment) {
|
||||
SimpleAsyncTaskExecutor taskExecutor = new SimpleAsyncTaskExecutor("jms-health-indicator-");
|
||||
SimpleAsyncTaskExecutor taskExecutor = new SimpleAsyncTaskExecutor("jms-health-indicator");
|
||||
if (Threading.VIRTUAL.isActive(environment)) {
|
||||
taskExecutor.setVirtualThreads(true);
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ public class JmsHealthIndicator extends AbstractHealthIndicator {
|
||||
*/
|
||||
@Deprecated(since = "3.2.0", forRemoval = true)
|
||||
public JmsHealthIndicator(ConnectionFactory connectionFactory) {
|
||||
this(connectionFactory, new SimpleAsyncTaskExecutor("jms-health-indicator-"), Duration.ofSeconds(5));
|
||||
this(connectionFactory, new SimpleAsyncTaskExecutor("jms-health-indicator"), Duration.ofSeconds(5));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user