From cc4765116c0b5716f8edf4dc23970e964bb1fe5d Mon Sep 17 00:00:00 2001 From: Jorge Hernandez Date: Tue, 19 Mar 2019 16:10:37 -0500 Subject: Add method to support configure all topics at once regardless of type (source or sink) Change-Id: Idaebae611746e364364d35375519173a7461ae61 Issue-ID: POLICY-1608 Signed-off-by: Jorge Hernandez --- .../onap/policy/common/endpoints/event/comm/TopicEndpoint.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'policy-endpoints/src/main/java/org/onap/policy/common/endpoints/event/comm/TopicEndpoint.java') diff --git a/policy-endpoints/src/main/java/org/onap/policy/common/endpoints/event/comm/TopicEndpoint.java b/policy-endpoints/src/main/java/org/onap/policy/common/endpoints/event/comm/TopicEndpoint.java index 52c1f07b..ff8b9513 100644 --- a/policy-endpoints/src/main/java/org/onap/policy/common/endpoints/event/comm/TopicEndpoint.java +++ b/policy-endpoints/src/main/java/org/onap/policy/common/endpoints/event/comm/TopicEndpoint.java @@ -42,6 +42,15 @@ public interface TopicEndpoint extends Startable, Lockable { */ TopicEndpoint manager = new TopicEndpointProxy(); + /** + * Add topics configuration (sources and sinks) into a single list. + * + * @param properties topic configuration + * @return topic list + * @throws IllegalArgumentException when invalid arguments are provided + */ + List addTopics(Properties properties); + /** * Add Topic Sources to the communication infrastructure initialized per properties. * -- cgit 1.2.3-korg