summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/onap/dcae/common/publishing/DMaaPEventPublisher.java
diff options
context:
space:
mode:
authorMukesh Paliwal <mukesh.paliwal1@huawei.com>2022-01-19 17:43:21 +0530
committerMukesh Paliwal <mukesh.paliwal1@huawei.com>2022-02-25 08:59:10 +0530
commita72ce419bce29ba8cf421eb74afad730d7cf374b (patch)
tree8ea71656ed6a6dfb7d1e5d01243c7b9ddb036bb4 /src/main/java/org/onap/dcae/common/publishing/DMaaPEventPublisher.java
parentbc40a9d58fe7ede6a41863b60466c776b388bbb3 (diff)
RESTConf - Switch CBS client library to 1.8.7 or higher
Issue-ID: DCAEGEN2-2857 Signed-off-by: Mukesh Paliwal <mukesh.paliwal1@huawei.com> Change-Id: I3242a29e2e09fae65dd1738b6883970ce436bf2a
Diffstat (limited to 'src/main/java/org/onap/dcae/common/publishing/DMaaPEventPublisher.java')
-rw-r--r--src/main/java/org/onap/dcae/common/publishing/DMaaPEventPublisher.java12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/main/java/org/onap/dcae/common/publishing/DMaaPEventPublisher.java b/src/main/java/org/onap/dcae/common/publishing/DMaaPEventPublisher.java
index 1209b38..e023c57 100644
--- a/src/main/java/org/onap/dcae/common/publishing/DMaaPEventPublisher.java
+++ b/src/main/java/org/onap/dcae/common/publishing/DMaaPEventPublisher.java
@@ -4,7 +4,7 @@
* ================================================================================
* Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
* Copyright (C) 2018 Nokia. All rights reserved.
- * Copyright (C) 2018-2019 Huawei. All rights reserved.
+ * Copyright (C) 2018-2022 Huawei. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -36,16 +36,14 @@ import static org.onap.dcae.common.publishing.VavrUtils.f;
/**
* @author Pawel Szalapski (pawel.szalapski@nokia.com)
*/
-class DMaaPEventPublisher implements EventPublisher {
+public final class DMaaPEventPublisher implements EventPublisher {
private static final int PENDING_MESSAGE_LOG_THRESHOLD = 100;
private static final Logger log = LoggerFactory.getLogger(DMaaPEventPublisher.class);
private final DMaaPPublishersCache publishersCache;
- private final Logger outputLogger;
+ private final Logger outputLogger = LoggerFactory.getLogger("org.onap.dcae.common.output");;
- DMaaPEventPublisher(DMaaPPublishersCache publishersCache,
- Logger outputLogger) {
- this.publishersCache = publishersCache;
- this.outputLogger = outputLogger;
+ public DMaaPEventPublisher(Map<String, PublisherConfig> publishersCache) {
+ this.publishersCache = new DMaaPPublishersCache(publishersCache);
}
@Override