Change EventListener functions to non-blocking scope 71/110571/2
authorJozsef Csongvai <jozsef.csongvai@bell.ca>
Fri, 24 Jul 2020 17:11:39 +0000 (13:11 -0400)
committerJozsef Csongvai <jozsef.csongvai@bell.ca>
Fri, 24 Jul 2020 19:06:53 +0000 (19:06 +0000)
commit910885f2cc98956acac1ef18a554f40f856590e3
treefcf1fcb14a5df8f203d2a8dae00dd4a337607bd5
parent8f917294bf447bc31826841198b832cf134bf20f
Change EventListener functions to non-blocking scope

BluePrintProcessingKafkaConsumer and BluePrintProcessorCluster were
both defining EventListener functions which were executed with
runBlocking. When both were enabled, kafkaconsumer would block
and cluster would never run.

Issue-ID: CCSDK-2609
Signed-off-by: Jozsef Csongvai <jozsef.csongvai@bell.ca>
Change-Id: I91813208f0474869f174da6c99280b5159859232
ms/blueprintsprocessor/application/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/BluePrintProcessorCluster.kt
ms/blueprintsprocessor/modules/inbounds/selfservice-api/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/selfservice/api/BluePrintProcessingKafkaConsumer.kt