diff options
author | mpriyank <priyank.maheshwari@est.tech> | 2024-03-08 12:50:53 +0000 |
---|---|---|
committer | mpriyank <priyank.maheshwari@est.tech> | 2024-03-14 14:02:12 +0000 |
commit | 6b0e6b3a95ceb566059351a9635e35e0c265ad1c (patch) | |
tree | ccf681dd2457a3a1848ebeda5fbe915c1c1ad646 /cps-ncmp-rest | |
parent | a927b20ce1a6d5792ed41e0a98eb475606e8f35a (diff) |
[Bug] Removing inner TaskExecutor to call DMI
- Removing TaskExecutor from cps-ncmp-service package as anyways the
call coming over from the cps-ncmp-rest layer is managed by a
different thread executor(CpsNcmpTaskExecutor)
- Provided 60secs timeout value.
- Spawning new thread from a different executor might not be needed
- Removing @Async from a non spring managed method as its of no use
Issue-ID: CPS-2150
Change-Id: Ic99632983aff2c40df81421d782cf98ec600fc41
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
Diffstat (limited to 'cps-ncmp-rest')
-rw-r--r-- | cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/controller/handlers/NcmpDatastoreRequestHandler.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/controller/handlers/NcmpDatastoreRequestHandler.java b/cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/controller/handlers/NcmpDatastoreRequestHandler.java index 8b08090905..65410d3a36 100644 --- a/cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/controller/handlers/NcmpDatastoreRequestHandler.java +++ b/cps-ncmp-rest/src/main/java/org/onap/cps/ncmp/rest/controller/handlers/NcmpDatastoreRequestHandler.java @@ -1,6 +1,6 @@ /* * ============LICENSE_START======================================================= - * Copyright (C) 2022-2023 Nordix Foundation + * Copyright (C) 2022-2024 Nordix Foundation * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -39,7 +39,7 @@ public abstract class NcmpDatastoreRequestHandler { private static final String NO_REQUEST_ID = null; private static final String NO_TOPIC = null; - @Value("${notification.async.executor.time-out-value-in-ms:2000}") + @Value("${notification.async.executor.time-out-value-in-ms:60000}") protected int timeOutInMilliSeconds; @Value("${notification.enabled:true}") |