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:38 UTC
[camel] 01/13: CAMEL-12268 - Camel-AWS: Lets call shutdown on the
clients while stopping endpoints - AWS S3
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 b39e2d04bd4c12e52fea112ce5a4ccdb56fe85f5
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Feb 15 09:26:37 2018 +0100
CAMEL-12268 - Camel-AWS: Lets call shutdown on the clients while stopping endpoints - AWS S3
---
.../main/java/org/apache/camel/component/aws/s3/S3Endpoint.java | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/components/camel-aws/src/main/java/org/apache/camel/component/aws/s3/S3Endpoint.java b/components/camel-aws/src/main/java/org/apache/camel/component/aws/s3/S3Endpoint.java
index 4684100..ae4c9ec 100644
--- a/components/camel-aws/src/main/java/org/apache/camel/component/aws/s3/S3Endpoint.java
+++ b/components/camel-aws/src/main/java/org/apache/camel/component/aws/s3/S3Endpoint.java
@@ -146,6 +146,14 @@ public class S3Endpoint extends ScheduledPollEndpoint {
LOG.trace("Bucket policy updated");
}
}
+
+ @Override
+ public void doStop() throws Exception {
+ if (s3Client != null) {
+ s3Client.shutdown();
+ }
+ super.doStop();
+ }
public Exchange createExchange(S3Object s3Object) {
return createExchange(getExchangePattern(), s3Object);
--
To stop receiving notification emails like this one, please contact
acosentino@apache.org.