|
@@ -59,14 +59,11 @@ import java.util.concurrent.TimeoutException;
|
|
|
@Component
|
|
|
public class RabbitMqListener {
|
|
|
|
|
|
- @Lazy
|
|
|
- @Value("${queue.modeling.modeling-call}")
|
|
|
+ @Value("${queue.modeling.modeling-call:modeling-call}")
|
|
|
private String queueModelingCall;
|
|
|
- @Lazy
|
|
|
- @Value("${queue.modeling.modeling-dt}")
|
|
|
+ @Value("${queue.modeling.modeling-dt:modeling-dt}")
|
|
|
private String queueModelingDt;
|
|
|
- @Lazy
|
|
|
- @Value("${queue.modeling.modeling-post}")
|
|
|
+ @Value("${queue.modeling.modeling-post:modeling-post}")
|
|
|
private String queueModelingPost;
|
|
|
|
|
|
@Autowired
|
|
@@ -96,9 +93,9 @@ public class RabbitMqListener {
|
|
|
* @throws Exception
|
|
|
*/
|
|
|
@RabbitListener(
|
|
|
- queuesToDeclare = @Queue("modeling-call"),
|
|
|
- concurrency = "1",
|
|
|
- priority = "${mq.consumerPriority}"
|
|
|
+ queuesToDeclare = @Queue("${queue.modeling.modeling-call:modeling-call}"),
|
|
|
+ concurrency = "${maxThread.modeling.modeling-call:1}",
|
|
|
+ priority = "${mq.consumerPriority}"
|
|
|
)
|
|
|
public void buildSceneHandler(Channel channel, Message message, @Header(AmqpHeaders.DELIVERY_TAG) long deliveryTag) throws Exception {
|
|
|
SysConstants.SYSTEM_BUILDING = true;
|