summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToine Siebelink <toine.siebelink@est.tech>2023-06-29 14:56:12 +0000
committerGerrit Code Review <gerrit@onap.org>2023-06-29 14:56:12 +0000
commitd43e45982198017702349a1ff3aba11b91d3215d (patch)
treed424efe85e6ddf099ccb27521282fd61d07b6979
parent89fa380df34de48e3dfaa4aec8501dfbb2351635 (diff)
parentbae276b78cdb0e6ee8c8825b977d3029b7d89f7a (diff)
Merge "Clearing code smells"
-rw-r--r--cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/events/EventsPublisher.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/events/EventsPublisher.java b/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/events/EventsPublisher.java
index 05c731d94..4c9064852 100644
--- a/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/events/EventsPublisher.java
+++ b/cps-ncmp-service/src/main/java/org/onap/cps/ncmp/api/impl/events/EventsPublisher.java
@@ -43,8 +43,11 @@ import org.springframework.util.concurrent.ListenableFutureCallback;
@RequiredArgsConstructor
public class EventsPublisher<T> {
- /** Once all cps events will be modified to cloud compliant, will remove legacyKafkaEventTemplate with
- it's java configuration file KafkaTemplateConfig. **/
+ /**
+ * KafaTemplate for legacy (non-cloud) events.
+ *
+ * @deprecated Cloud events should be used. Will address soon as part of https://jira.onap.org/browse/CPS-1717
+ */
@Deprecated(forRemoval = true)
private final KafkaTemplate<String, T> legacyKafkaEventTemplate;
@@ -69,7 +72,7 @@ public class EventsPublisher<T> {
* @param topicName valid topic name
* @param eventKey message key
* @param event message payload
- * @deprecated This method is not needed anymore since the use of headers will be in place.
+ * @deprecated Cloud events should be used. Will address soon as part of https://jira.onap.org/browse/CPS-1717
*/
@Deprecated(forRemoval = true)
public void publishEvent(final String topicName, final String eventKey, final T event) {