mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
parent
d93d05ade2
commit
a843aca821
@ -64,7 +64,7 @@ public class JmsHealthContributorAutoConfiguration
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static SimpleAsyncTaskExecutor getTaskExecutor(Environment environment) {
|
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)) {
|
if (Threading.VIRTUAL.isActive(environment)) {
|
||||||
taskExecutor.setVirtualThreads(true);
|
taskExecutor.setVirtualThreads(true);
|
||||||
}
|
}
|
||||||
|
@ -59,7 +59,7 @@ public class JmsHealthIndicator extends AbstractHealthIndicator {
|
|||||||
*/
|
*/
|
||||||
@Deprecated(since = "3.2.0", forRemoval = true)
|
@Deprecated(since = "3.2.0", forRemoval = true)
|
||||||
public JmsHealthIndicator(ConnectionFactory connectionFactory) {
|
public JmsHealthIndicator(ConnectionFactory connectionFactory) {
|
||||||
this(connectionFactory, new SimpleAsyncTaskExecutor("jms-health-indicator-"), Duration.ofSeconds(5));
|
this(connectionFactory, new SimpleAsyncTaskExecutor("jms-health-indicator"), Duration.ofSeconds(5));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user