Performance Improvement: Temporal event 63/130363/5
authormpriyank <priyank.maheshwari@est.tech>
Thu, 18 Aug 2022 14:20:09 +0000 (15:20 +0100)
committermpriyank <priyank.maheshwari@est.tech>
Fri, 19 Aug 2022 10:38:11 +0000 (11:38 +0100)
commitca19d1864d7c39982e0fcf991840bd52c8fd6ddb
tree4de23c0d30e581823b9ef02ac0e71a816140041f
parentc68b5f0b8ddfe0ecc7f6015de7fcd11fdf693903
Performance Improvement: Temporal event

- Call the admin service in the async pool thread to fetch the anchor
  details in case of raising event on save, update and delete a node or
  delete list elements
- Admin service is still called in the main thread in case of
  DeleteNodes method as we require to have anchor as we are deleting all
  the anchors.
- Fixed the test scenarios related to processing async event
- Rearranged method formal params

Issue-ID: CPS-1126
Issue-ID: CPS-1209
Change-Id: Ibd8f001c4d7c7de63914f6de24042aaf01a063b2
Signed-off-by: mpriyank <priyank.maheshwari@est.tech>
cps-service/src/main/java/org/onap/cps/api/impl/CpsDataServiceImpl.java
cps-service/src/main/java/org/onap/cps/notification/NotificationService.java
cps-service/src/test/groovy/org/onap/cps/api/impl/CpsDataServiceImplSpec.groovy
cps-service/src/test/groovy/org/onap/cps/notification/NotificationServiceSpec.groovy