* @param hosts array of potential hosts to seed the cluster
* @throws AerospikeException if all host connections fail
*/
public AerospikeClient(ClientPolicy policy, Host... hosts) throws AerospikeException {
if (policy == null) {
policy = new ClientPolicy();
}
cluster = new Cluster(policy, hosts);
cluster.initTendThread();
if (policy.failIfNotConnected && ! cluster.isConnected()) {