diff options
author | 2018-07-06 10:38:45 +0200 | |
---|---|---|
committer | 2018-07-09 13:29:01 +0200 | |
commit | a14d63079541c40f9471407b8753d56e1fcc0ea4 (patch) | |
tree | debac624152db6a3bc9adee5860bb1fd880c6bdc /src/main/java/org/onap/crud/service/CrudAsyncGraphDataService.java | |
parent | 4b09e9e4fe77a4aa749f1a7ffa07545b64d3e2cb (diff) |
Fix code architecure in CrudAsyncResponseConsumer
- fix code complexity
- make code testable
- add missing tests
Change-Id: I542e7f603a5ffe956ae3fc3f58874b7dd2ce87a1
Issue-ID: AAI-1365
Signed-off-by: Bogumil Zebek <bogumil.zebek@nokia.com>
Diffstat (limited to 'src/main/java/org/onap/crud/service/CrudAsyncGraphDataService.java')
-rw-r--r-- | src/main/java/org/onap/crud/service/CrudAsyncGraphDataService.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/org/onap/crud/service/CrudAsyncGraphDataService.java b/src/main/java/org/onap/crud/service/CrudAsyncGraphDataService.java index c2d2591..26f7427 100644 --- a/src/main/java/org/onap/crud/service/CrudAsyncGraphDataService.java +++ b/src/main/java/org/onap/crud/service/CrudAsyncGraphDataService.java @@ -120,7 +120,9 @@ public class CrudAsyncGraphDataService extends AbstractGraphDataService { } // Start the Response Consumer timer - CrudAsyncResponseConsumer crudAsyncResponseConsumer = new CrudAsyncResponseConsumer(asyncResponseConsumer); + CrudAsyncResponseConsumer crudAsyncResponseConsumer = new CrudAsyncResponseConsumer( + asyncResponseConsumer, new GraphEventUpdater() + ); timer = new Timer("crudAsyncResponseConsumer-1"); timer.schedule(crudAsyncResponseConsumer, responsePollInterval, responsePollInterval); |