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/07/20 10:11:41 UTC
[camel] 03/04: Camel-Nats: The default maxReconnect in client is 60
attempts
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 d308bb65c317b4461fe92d142f3deedb13077567
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Jul 20 12:06:43 2018 +0200
Camel-Nats: The default maxReconnect in client is 60 attempts
---
.../main/java/org/apache/camel/component/nats/NatsConfiguration.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/components/camel-nats/src/main/java/org/apache/camel/component/nats/NatsConfiguration.java b/components/camel-nats/src/main/java/org/apache/camel/component/nats/NatsConfiguration.java
index ac926f8..2443269 100644
--- a/components/camel-nats/src/main/java/org/apache/camel/component/nats/NatsConfiguration.java
+++ b/components/camel-nats/src/main/java/org/apache/camel/component/nats/NatsConfiguration.java
@@ -45,8 +45,8 @@ public class NatsConfiguration {
private boolean verbose;
@UriParam(defaultValue = "2000")
private int reconnectTimeWait = 2000;
- @UriParam(defaultValue = "3")
- private int maxReconnectAttempts = 3;
+ @UriParam(defaultValue = "60")
+ private int maxReconnectAttempts = Options.DEFAULT_MAX_RECONNECT;
@UriParam(defaultValue = "120000")
private int pingInterval = 120000;
@UriParam(label = "common", defaultValue = "2000")