* ONAP
* ================================================================================
* Copyright (C) 2018-2021 AT&T Intellectual Property. All rights reserved.
+ * Modifications Copyright (C) 2024 Nordix Foundation.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
import org.slf4j.LoggerFactory;
/**
- * Manages the internal DMaaP topic. Assumes all topics are managed by
- * {@link TopicEndpoint#manager}.
+ * Manages the internal topic. Assumes all topics are managed by
+ * {@link TopicEndpoint}.
*/
-public class DmaapManager {
+public class TopicMessageManager {
- private static final Logger logger = LoggerFactory.getLogger(DmaapManager.class);
+ private static final Logger logger = LoggerFactory.getLogger(TopicMessageManager.class);
/**
- * Name of the DMaaP topic.
+ * Name of the topic.
*/
@Getter
private final String topic;
/**
* Constructs the manager, but does not start the source or sink.
*
- * @param topic name of the internal DMaaP topic
+ * @param topic name of the internal topic
* @throws PoolingFeatureException if an error occurs
*/
- public DmaapManager(String topic) throws PoolingFeatureException {
+ public TopicMessageManager(String topic) throws PoolingFeatureException {
logger.info("initializing bus for topic {}", topic);
}
/**
- * Finds the topic source associated with the internal DMaaP topic.
+ * Finds the topic source associated with the internal topic.
*
* @return the topic source
* @throws PoolingFeatureException if the source doesn't exist or is not filterable
}
/**
- * Finds the topic sink associated with the internal DMaaP topic.
+ * Finds the topic sink associated with the internal topic.
*
* @return the topic sink
* @throws PoolingFeatureException if the sink doesn't exist