use of com.hazelcast.client.config.ClientConfig in project hazelcast by hazelcast.
the class AbstractListenersOnReconnectTest method getNonSmartClientConfig.
private ClientConfig getNonSmartClientConfig(int heartbeatTimeoutSeconds, int heartbeatIntervalSeconds) {
ClientConfig clientConfig = getSmartClientConfig(heartbeatTimeoutSeconds, heartbeatIntervalSeconds);
clientConfig.getNetworkConfig().setSmartRouting(false);
return clientConfig;
}
use of com.hazelcast.client.config.ClientConfig in project hazelcast by hazelcast.
the class ListenerLeakTestNonSmartRouting method newHazelcastClient.
private HazelcastInstance newHazelcastClient() {
ClientConfig clientConfig = new ClientConfig();
clientConfig.getNetworkConfig().setSmartRouting(false);
return hazelcastFactory.newHazelcastClient(clientConfig);
}
use of com.hazelcast.client.config.ClientConfig in project hazelcast by hazelcast.
the class AbstractListenersOnReconnectTest method getSmartClientConfig.
private ClientConfig getSmartClientConfig() {
ClientConfig clientConfig = new ClientConfig();
clientConfig.getNetworkConfig().setConnectionAttemptLimit(Integer.MAX_VALUE);
clientConfig.getNetworkConfig().setRedoOperation(true);
return clientConfig;
}
use of com.hazelcast.client.config.ClientConfig in project hazelcast by hazelcast.
the class AbstractListenersOnReconnectTest method testTemporaryBlockedNoDisconnectionNonSmartRouting.
@Test
public void testTemporaryBlockedNoDisconnectionNonSmartRouting() {
factory.newHazelcastInstance();
ClientConfig clientConfig = getNonSmartClientConfig(4, 1);
client = factory.newHazelcastClient(clientConfig);
testListenersTemporaryNetworkBlockage();
}
use of com.hazelcast.client.config.ClientConfig in project hazelcast by hazelcast.
the class AbstractListenersOnReconnectTest method testListenersNonSmartRoutingMultipleServer.
@Test
public void testListenersNonSmartRoutingMultipleServer() {
factory.newInstances(null, 3);
ClientConfig clientConfig = getNonSmartClientConfig();
client = factory.newHazelcastClient(clientConfig);
testListenersTerminateOwnerNode();
}
Aggregations