summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhekeguang <hekeguang@chinamobile.com>2020-03-06 15:42:54 +0800
committerhekeguang <hekeguang@chinamobile.com>2020-03-06 15:43:04 +0800
commit18d2a127df570b8eade2e6704e00f69c918f6902 (patch)
treee4adcd2813e5a911f9f668b67eff0e56a2aa1923
parentadee87e7191ffba35a273166ba1dfb819fe66941 (diff)
Optimize code to reduce CPU usage.
Issue-ID: USECASEUI-404 Change-Id: Ied8b8f38c41e50e63e8df835a97a821b019d592a Signed-off-by: hekeguang <hekeguang@chinamobile.com>
-rw-r--r--server/src/main/java/org/onap/usecaseui/server/util/DmaapSubscriber.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/src/main/java/org/onap/usecaseui/server/util/DmaapSubscriber.java b/server/src/main/java/org/onap/usecaseui/server/util/DmaapSubscriber.java
index 8753ae56..4fccee8a 100644
--- a/server/src/main/java/org/onap/usecaseui/server/util/DmaapSubscriber.java
+++ b/server/src/main/java/org/onap/usecaseui/server/util/DmaapSubscriber.java
@@ -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);
*/}