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