|
@@ -82,6 +82,7 @@ public class RabbitMQConfig {
|
|
|
container.setAutoStartup(!isDynamic); // 根据配置决定是否自动启动
|
|
|
container.setPrefetchCount(2);
|
|
|
container.setAcknowledgeMode(AcknowledgeMode.MANUAL);
|
|
|
+ container.setErrorHandler(t -> log.error("doSliceQueue 监听器发生异常", t));
|
|
|
return container;
|
|
|
}
|
|
|
|
|
@@ -94,6 +95,7 @@ public class RabbitMQConfig {
|
|
|
container.setAutoStartup(!isDynamic); // 根据配置决定是否自动启动
|
|
|
container.setPrefetchCount(1);
|
|
|
container.setAcknowledgeMode(AcknowledgeMode.MANUAL);
|
|
|
+ container.setErrorHandler(t -> log.error("panoMigrateSceneQueue 监听器发生异常", t));
|
|
|
return container;
|
|
|
}
|
|
|
|
|
@@ -106,6 +108,7 @@ public class RabbitMQConfig {
|
|
|
container.setAutoStartup(!isDynamic); // 根据配置决定是否自动启动
|
|
|
container.setPrefetchCount(1);
|
|
|
container.setAcknowledgeMode(AcknowledgeMode.MANUAL);
|
|
|
+ container.setErrorHandler(t -> log.error("panoPayStatusSceneQueue 监听器发生异常", t));
|
|
|
return container;
|
|
|
}
|
|
|
|
|
@@ -118,6 +121,7 @@ public class RabbitMQConfig {
|
|
|
container.setAutoStartup(!isDynamic); // 根据配置决定是否自动启动
|
|
|
container.setPrefetchCount(1);
|
|
|
container.setAcknowledgeMode(AcknowledgeMode.MANUAL);
|
|
|
+ container.setErrorHandler(t -> log.error("sceneQueue 监听器发生异常", t));
|
|
|
return container;
|
|
|
}
|
|
|
|
|
@@ -131,6 +135,7 @@ public class RabbitMQConfig {
|
|
|
container.setAutoStartup(true); // 根据配置决定是否自动启动
|
|
|
container.setPrefetchCount(2);
|
|
|
container.setAcknowledgeMode(AcknowledgeMode.MANUAL);
|
|
|
+ container.setErrorHandler(t -> log.error("sceneWorkQueue 监听器发生异常", t));
|
|
|
return container;
|
|
|
}
|
|
|
}
|