Commit e7e2b4ff by levphon

设备监控-异步同步设备号到布隆过滤器

1 parent 471fe89c
......@@ -8,6 +8,7 @@ import com.glsx.plat.context.utils.PropertiesUtils;
import com.google.common.collect.Maps;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.event.EventListener;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;
import java.util.Map;
......@@ -24,6 +25,11 @@ public class EventHandleComponent {
return;
}
syncBloomFilter(event);
}
@Async
public void syncBloomFilter(DeviceDataEvent event) {
String url = PropertiesUtils.getProperty("ne-shield-kafkaconsumer-gpsbs1.url");
Map<String, Object> params = Maps.newHashMap();
params.put("sn", event.getSn());
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!