You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2017/02/19 11:47:58 UTC

[2/2] camel git commit: CAMEL-10860: camel-hazelcast - route policy should have a better try lock default value

CAMEL-10860: camel-hazelcast - route policy should have a better try lock default value


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/72025be0
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/72025be0
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/72025be0

Branch: refs/heads/master
Commit: 72025be030b0d0e74daa9603361ffd0da672007b
Parents: 1494988
Author: Claus Ibsen <da...@apache.org>
Authored: Sun Feb 19 12:47:16 2017 +0100
Committer: Claus Ibsen <da...@apache.org>
Committed: Sun Feb 19 12:47:16 2017 +0100

----------------------------------------------------------------------
 .../camel/component/hazelcast/policy/HazelcastRoutePolicy.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/72025be0/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/policy/HazelcastRoutePolicy.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/policy/HazelcastRoutePolicy.java b/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/policy/HazelcastRoutePolicy.java
index 1b514b2..94d332f 100644
--- a/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/policy/HazelcastRoutePolicy.java
+++ b/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/policy/HazelcastRoutePolicy.java
@@ -70,7 +70,7 @@ public class HazelcastRoutePolicy extends RoutePolicySupport implements CamelCon
         this.lockMapName = null;
         this.lockKey = null;
         this.lockValue = null;
-        this.tryLockTimeout = Long.MAX_VALUE;
+        this.tryLockTimeout = 10 * 1000;
         this.tryLockTimeoutUnit = TimeUnit.MILLISECONDS;
         this.locks = null;
         this.future = null;