java-client should attempt to reconnect until a connection is established or maximum amount of retries has been reached when first creating the client