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:44 UTC
[camel] 07/13: CAMEL-12268 - Camel-AWS: Lets call shutdown on the
clients while stopping endpoints - AWS DDB Stream
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 2cbacb16bb6eb50eb7d23d6a8c072d8e313d60ff
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Feb 15 09:31:41 2018 +0100
CAMEL-12268 - Camel-AWS: Lets call shutdown on the clients while stopping endpoints - AWS DDB Stream
---
.../apache/camel/component/aws/ddbstream/DdbStreamEndpoint.java | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/components/camel-aws/src/main/java/org/apache/camel/component/aws/ddbstream/DdbStreamEndpoint.java b/components/camel-aws/src/main/java/org/apache/camel/component/aws/ddbstream/DdbStreamEndpoint.java
index a4887b6..662c8ec 100644
--- a/components/camel-aws/src/main/java/org/apache/camel/component/aws/ddbstream/DdbStreamEndpoint.java
+++ b/components/camel-aws/src/main/java/org/apache/camel/component/aws/ddbstream/DdbStreamEndpoint.java
@@ -79,6 +79,14 @@ public class DdbStreamEndpoint extends ScheduledPollEndpoint {
ddbStreamClient = configuration.getAmazonDynamoDbStreamsClient() != null ? configuration.getAmazonDynamoDbStreamsClient()
: createDdbStreamClient();
}
+
+ @Override
+ public void doStop() throws Exception {
+ if (ddbStreamClient != null) {
+ ddbStreamClient.shutdown();
+ }
+ super.doStop();
+ }
@Override
public boolean isSingleton() {
--
To stop receiving notification emails like this one, please contact
acosentino@apache.org.