Merge branch '2.7.x' into 3.0.x

Closes gh-35772
pull/35611/head
Andy Wilkinson 1 year ago
commit 51e980200a

@ -18,6 +18,8 @@ package org.springframework.boot.autoconfigure.hazelcast;
import com.hazelcast.client.HazelcastClient; import com.hazelcast.client.HazelcastClient;
import com.hazelcast.client.config.ClientConfig; import com.hazelcast.client.config.ClientConfig;
import com.hazelcast.client.config.ClientConnectionStrategyConfig;
import com.hazelcast.client.config.ConnectionRetryConfig;
import com.hazelcast.client.impl.clientside.HazelcastClientProxy; import com.hazelcast.client.impl.clientside.HazelcastClientProxy;
import com.hazelcast.config.Config; import com.hazelcast.config.Config;
import com.hazelcast.core.Hazelcast; import com.hazelcast.core.Hazelcast;
@ -201,7 +203,8 @@ class HazelcastAutoConfigurationClientTests {
@Bean @Bean
ClientConfig clientConfig() { ClientConfig clientConfig() {
return new ClientConfig(); return new ClientConfig().setConnectionStrategyConfig(new ClientConnectionStrategyConfig()
.setConnectionRetryConfig(new ConnectionRetryConfig().setClusterConnectTimeoutMillis(60000)));
} }
} }

@ -5,4 +5,10 @@
<instance-name>spring-boot</instance-name> <instance-name>spring-boot</instance-name>
<connection-strategy>
<connection-retry>
<cluster-connect-timeout-millis>60000</cluster-connect-timeout-millis>
</connection-retry>
</connection-strategy>
</hazelcast-client> </hazelcast-client>

@ -5,5 +5,10 @@
<client-labels> <client-labels>
<label>explicit-xml</label> <label>explicit-xml</label>
</client-labels> </client-labels>
<connection-strategy>
<connection-retry>
<cluster-connect-timeout-millis>60000</cluster-connect-timeout-millis>
</connection-retry>
</connection-strategy>
</hazelcast-client> </hazelcast-client>

@ -1,3 +1,6 @@
hazelcast-client: hazelcast-client:
client-labels: client-labels:
- explicit-yaml - explicit-yaml
connection-strategy:
connection-retry:
cluster-connect-timeout-millis: 60000

@ -1,3 +1,6 @@
hazelcast-client: hazelcast-client:
client-labels: client-labels:
- explicit-yml - explicit-yml
connection-strategy:
connection-retry:
cluster-connect-timeout-millis: 60000

Loading…
Cancel
Save