summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2010-04-19 09:16:25 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2010-04-19 09:16:25 +0000
commitcb340e0c96deca47be86fe22f3890cc4dd6385ff (patch)
tree435a331267eb06cfe49a6322e575f2b2177546eb
parentef1bb793d046db4f47dfc331ca340c59a6cd6bcb (diff)
Decrease the Hazelcast wait before join time as it makes it appeaer faster
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@935484 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--sca-java-2.x/trunk/modules/endpoint-hazelcast/src/main/java/org/apache/tuscany/sca/endpoint/hazelcast/HazelcastEndpointRegistry.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/sca-java-2.x/trunk/modules/endpoint-hazelcast/src/main/java/org/apache/tuscany/sca/endpoint/hazelcast/HazelcastEndpointRegistry.java b/sca-java-2.x/trunk/modules/endpoint-hazelcast/src/main/java/org/apache/tuscany/sca/endpoint/hazelcast/HazelcastEndpointRegistry.java
index c5ab0a12d1..c97a81080d 100644
--- a/sca-java-2.x/trunk/modules/endpoint-hazelcast/src/main/java/org/apache/tuscany/sca/endpoint/hazelcast/HazelcastEndpointRegistry.java
+++ b/sca-java-2.x/trunk/modules/endpoint-hazelcast/src/main/java/org/apache/tuscany/sca/endpoint/hazelcast/HazelcastEndpointRegistry.java
@@ -159,6 +159,10 @@ public class HazelcastEndpointRegistry extends BaseEndpointRegistry implements E
// Disable the Hazelcast shutdown hook as Tuscany has its own and with both there are race conditions
config.setProperty(GroupProperties.PROP_SHUTDOWNHOOK_ENABLED, "false");
+ // By default this is 5 seconds, not sure what the implications are but dropping it down to 1 makes
+ // things like the samples look much faster
+ config.setProperty(GroupProperties.PROP_WAIT_SECONDS_BEFORE_JOIN, "1");
+
this.hazelcastInstance = Hazelcast.newHazelcastInstance(config);
}