summaryrefslogtreecommitdiffstats
path: root/ResmanagementService/service/src
diff options
context:
space:
mode:
Diffstat (limited to 'ResmanagementService/service/src')
-rw-r--r--ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/service/adapter/impl/ResmgrAdapterMgrService.java7
1 files changed, 1 insertions, 6 deletions
diff --git a/ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/service/adapter/impl/ResmgrAdapterMgrService.java b/ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/service/adapter/impl/ResmgrAdapterMgrService.java
index 625b41d..12e4061 100644
--- a/ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/service/adapter/impl/ResmgrAdapterMgrService.java
+++ b/ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/service/adapter/impl/ResmgrAdapterMgrService.java
@@ -106,9 +106,6 @@ public class ResmgrAdapterMgrService implements IResmgrAdapterMgrService {
private static class RegisterResmgrThread implements Runnable {
- // Thread lock Object
- private final Object lockObject = new Object();
-
private IResmgrAdapter2MSBManager adapter2MSBMgr = new ResmgrAdapter2MSBManager();
// url and mothedtype
@@ -151,9 +148,7 @@ public class ResmgrAdapterMgrService implements IResmgrAdapterMgrService {
// if registration fails,wait one minute and try again
try {
- synchronized(lockObject) {
- lockObject.wait(Constant.REPEAT_REG_TIME);
- }
+ Thread.sleep(Constant.REPEAT_REG_TIME);
} catch(InterruptedException e) {
LOG.error(e.getMessage(), e);
// Restore interrupted state...