Optimize code to reduce CPU usage. 22/103222/1
authorhekeguang <hekeguang@chinamobile.com>
Fri, 6 Mar 2020 07:42:54 +0000 (15:42 +0800)
committerhekeguang <hekeguang@chinamobile.com>
Fri, 6 Mar 2020 07:43:04 +0000 (15:43 +0800)
Issue-ID: USECASEUI-404
Change-Id: Ied8b8f38c41e50e63e8df835a97a821b019d592a
Signed-off-by: hekeguang <hekeguang@chinamobile.com>
server/src/main/java/org/onap/usecaseui/server/util/DmaapSubscriber.java

index 8753ae5..4fccee8 100644 (file)
@@ -131,7 +131,9 @@ public class DmaapSubscriber implements Runnable {
     public void run() {
         try {
             initConfig();
-            while (isActive) {/*
+            while (isActive) {
+                Thread.sleep(1000);
+                /*
                 subscribe(alarmTopic);
                 subscribe(performanceTopic);
             */}