From 95c897c3c85c305f676dc04adc2f167fecfc598b Mon Sep 17 00:00:00 2001 From: Gurjeet Bedi Date: Thu, 14 Jun 2018 11:53:35 -0400 Subject: Adding close as part of consumer default close in case consumer needs Issue-ID: AAI-1205 Change-Id: I376e0e2a1ade4a2edefa3b052098618c15b1af1e Signed-off-by: Gurjeet Bedi --- .../src/main/java/org/onap/aai/event/api/EventConsumer.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/event-client-api/src/main/java/org/onap/aai/event/api/EventConsumer.java b/event-client-api/src/main/java/org/onap/aai/event/api/EventConsumer.java index 58ef8d1..6cb97e7 100644 --- a/event-client-api/src/main/java/org/onap/aai/event/api/EventConsumer.java +++ b/event-client-api/src/main/java/org/onap/aai/event/api/EventConsumer.java @@ -62,4 +62,10 @@ public interface EventConsumer { * @throws Exception if the offsets could not be committed */ public void commitOffsets(long offset) throws Exception; + + /** + * Closes the consumer + * @throws Exception + */ + default void close() throws Exception {} } -- cgit 1.2.3-korg