|
@@ -25,7 +25,7 @@ import java.util.Optional;
|
|
|
@ConditionalOnProperty(prefix = "iot.type", name = "edge", havingValue = "true", matchIfMissing = false)
|
|
|
public class KafkaConsumerCloud2Edge {
|
|
|
|
|
|
- @KafkaListener(topics = KafkaProducer.TOPIC_COLLECT2EDGE, groupId = KafkaProducer.GROUP_IOT)
|
|
|
+ @KafkaListener(topics = KafkaProducer.TOPIC_COLLECT2EDGE, groupId = "${persagy.group.iot:group_iot}")
|
|
|
public void topicCollect2Edge(ConsumerRecord<String, String> record, Acknowledgment ack, @Header(KafkaHeaders.RECEIVED_TOPIC) String topic) {
|
|
|
Optional<String> message = Optional.ofNullable(record.value());
|
|
|
if (message.isPresent()) {
|
|
@@ -38,7 +38,7 @@ public class KafkaConsumerCloud2Edge {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- @KafkaListener(topics = KafkaProducer.TOPIC_CONTROL2EDGE, groupId = KafkaProducer.GROUP_IOT)
|
|
|
+ @KafkaListener(topics = KafkaProducer.TOPIC_CONTROL2EDGE, groupId = "${persagy.group.iot:group_iot}")
|
|
|
public void topicControl2Edge(ConsumerRecord<String, String> record, Acknowledgment ack, @Header(KafkaHeaders.RECEIVED_TOPIC) String topic) {
|
|
|
Optional<String> message = Optional.ofNullable(record.value());
|
|
|
if (message.isPresent()) {
|