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:47 UTC

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

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 418bfb9285eedb9df48855111b4c23fd70af4e42
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Feb 15 09:34:23 2018 +0100

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

diff --git a/components/camel-aws/src/main/java/org/apache/camel/component/aws/kinesis/KinesisEndpoint.java b/components/camel-aws/src/main/java/org/apache/camel/component/aws/kinesis/KinesisEndpoint.java
index 127cdd6..6e12682 100644
--- a/components/camel-aws/src/main/java/org/apache/camel/component/aws/kinesis/KinesisEndpoint.java
+++ b/components/camel-aws/src/main/java/org/apache/camel/component/aws/kinesis/KinesisEndpoint.java
@@ -64,6 +64,14 @@ public class KinesisEndpoint extends ScheduledPollEndpoint {
             throw new IllegalArgumentException("Sequence Number must be specified with iterator Types AFTER_SEQUENCE_NUMBER or AT_SEQUENCE_NUMBER");
         }
     }
+    
+    @Override
+    public void doStop() throws Exception {
+        if (kinesisClient != null) {
+            kinesisClient.shutdown();
+        }
+        super.doStop();
+    }
 
     @Override
     public Producer createProducer() throws Exception {

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