Browse Source

优化发送数据转发

master
bgy 1 month ago
parent
commit
2de78bd769
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/main/java/com/topsail/influxdb/rabbitmq/AmqpListener.java

+ 3
- 3
src/main/java/com/topsail/influxdb/rabbitmq/AmqpListener.java View File

@ -40,7 +40,7 @@ public class AmqpListener {
* @param channel
* @throws Exception
*/
// @RabbitListener(queues = "shengdilandevicedataall")
@RabbitListener(queues = "shengdilandevicedataall")
public void deviceDataMqListener(@Payload String message, @Header(AmqpHeaders.DELIVERY_TAG) long deliveryTag, Channel channel) throws Exception {
if (StringUtils.isEmpty(message)) {
channel.basicAck(deliveryTag, false);
@ -93,7 +93,7 @@ public class AmqpListener {
}
}
}
// @RabbitListener(queues = "shengdilandevicedataback")
@RabbitListener(queues = "shengdilandevicedataback")
public void deviceDataMqListenerForBackup(@Payload String message, @Header(AmqpHeaders.DELIVERY_TAG) long deliveryTag, Channel channel) throws Exception {
if (StringUtils.isEmpty(message)) {
channel.basicAck(deliveryTag, false);
@ -154,7 +154,7 @@ public class AmqpListener {
* @param channel
* @throws Exception
*/
// @RabbitListener(queues = "shengdilandevicelogall")
@RabbitListener(queues = "shengdilandevicelogall")
public void deviceLogMqListener(@Payload String message, @Header(AmqpHeaders.DELIVERY_TAG) long deliveryTag, Channel channel) throws Exception {
if (StringUtils.isEmpty(message)) {
channel.basicAck(deliveryTag, false);


Loading…
Cancel
Save