aboutsummaryrefslogtreecommitdiffstats
path: root/appc-event-listener
diff options
context:
space:
mode:
authorJegadeesh Babu <jegabab1@in.ibm.com>2019-02-20 18:29:09 +0530
committerTakamune Cho <takamune.cho@att.com>2019-02-21 14:06:32 +0000
commit70ed737df023f8d15067c1f59e9818257b271f87 (patch)
tree00712d20983d28e90c7b016fa34fb0ab898e9797 /appc-event-listener
parent51e1891ab821c85f252336ccee951645eb9af91b (diff)
Handled interrupted Exception
Sonar Bug Fix Issue-ID: APPC-1469 Change-Id: I3f1fe6b620e8b01659e1b927b1f5fb667be20648 Signed-off-by: Jegadeesh Babu <jegabab1@in.ibm.com>
Diffstat (limited to 'appc-event-listener')
-rw-r--r--appc-event-listener/appc-event-listener-bundle/src/main/java/org/onap/appc/listener/AbstractListener.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/appc-event-listener/appc-event-listener-bundle/src/main/java/org/onap/appc/listener/AbstractListener.java b/appc-event-listener/appc-event-listener-bundle/src/main/java/org/onap/appc/listener/AbstractListener.java
index 2b6fea9a5..b9e8a6c84 100644
--- a/appc-event-listener/appc-event-listener-bundle/src/main/java/org/onap/appc/listener/AbstractListener.java
+++ b/appc-event-listener/appc-event-listener-bundle/src/main/java/org/onap/appc/listener/AbstractListener.java
@@ -6,6 +6,8 @@
* ================================================================================
* Copyright (C) 2017 Amdocs
* =============================================================================
+ * Modifications Copyright (C) 2019 IBM
+ * =============================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@@ -93,6 +95,7 @@ public abstract class AbstractListener implements Listener {
executor.awaitTermination(10, TimeUnit.SECONDS);
} catch (InterruptedException e) {
LOG.error("Listener graceful stop() failed", e);
+ Thread.currentThread().interrupt();
}
// close DMaaP clients