You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2018/02/15 08:41:46 UTC

[camel] 09/13: CAMEL-12268 - Camel-AWS: Lets call shutdown on the clients while stopping endpoints - AWS Kinesis Firehose

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit dd9a212600bfe812aaf7ebd5338113f758d547e6
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Feb 15 09:33:47 2018 +0100

    CAMEL-12268 - Camel-AWS: Lets call shutdown on the clients while stopping endpoints - AWS Kinesis Firehose
---
 .../camel/component/aws/firehose/KinesisFirehoseEndpoint.java     | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/components/camel-aws/src/main/java/org/apache/camel/component/aws/firehose/KinesisFirehoseEndpoint.java b/components/camel-aws/src/main/java/org/apache/camel/component/aws/firehose/KinesisFirehoseEndpoint.java
index 3f5fafe..7bed819 100644
--- a/components/camel-aws/src/main/java/org/apache/camel/component/aws/firehose/KinesisFirehoseEndpoint.java
+++ b/components/camel-aws/src/main/java/org/apache/camel/component/aws/firehose/KinesisFirehoseEndpoint.java
@@ -66,6 +66,14 @@ public class KinesisFirehoseEndpoint extends DefaultEndpoint {
             : createKinesisFirehoseClient();
                
     }
+    
+    @Override
+    public void doStop() throws Exception {
+        if (kinesisFirehoseClient != null) {
+            kinesisFirehoseClient.shutdown();
+        }
+        super.doStop();
+    }
 
     @Override
     public boolean isSingleton() {

-- 
To stop receiving notification emails like this one, please contact
acosentino@apache.org.