From: Piotr Jaszczyk Date: Wed, 11 Apr 2018 14:29:30 +0000 (+0200) Subject: Optimize and refactor EventPublisher class in VES X-Git-Tag: v1.2.0~6 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=17859bdd1f24904d2a9162a1a43f9db222750f4a;p=dcaegen2%2Fcollectors%2Fves.git Optimize and refactor EventPublisher class in VES * Remove need for having sendEvent synchronized by means of using Guava LoadingCache. The only thing that made it synchronized was the creation of new entries in the map but the synchronization was made on each incoming event. * Split the class to smaller classes which conform to SRP. This makes us able to... * ... write unit tests for affected classes * TODO: upgrade to Java8 so lambdas will simplify the code even more Change-Id: I14cf4cfab0570ce5aecc9a5e5dc9f541c499f9d7 Issue-ID: DCAEGEN2-440 Signed-off-by: Piotr Jaszczyk --- diff --git a/pom.xml b/pom.xml index 04a0d3a9..9540d409 100644 --- a/pom.xml +++ b/pom.xml @@ -1,6 +1,7 @@