Yes you can set the connectionAttemptLimit on the ClientConfig.
connectionAttemptLimit: the maximum numbers of times to try the addresses to connect to the cluster, defaults to 2. When a client starts or a the client looses connecting with the cluster, it will try to make a connection with one of the cluster member addresses. In some cases a client can’t connect to these addresses, e.g. the cluster is not yet up or not reachable. Instead of giving up, one can increase the attempt limit to create a connection. Also have a look at the connectionAttemptPeriod.