aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--event-client-api/src/main/java/org/onap/aai/event/api/EventConsumer.java6
1 files changed, 6 insertions, 0 deletions
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 {}
}