I want to connect to a Cassandra database using a hostname I have configured (for development purposes). I don't want the connector to connect to other nodes (nodes discovered via gossiping)
In the older versions of the driver, I was able to achieve this as follows;
Collection<InetSocketAddress> whiteList = new HashSet<>();
InetAddress address = InetAddress.getByName("dev.temphost.com");
whiteList.add(new InetSocketAddress (address, 9042));
cluster.setLoadBalancingPolicy(new WhiteListPolicy(new RoundRobinPolicy(), whiteList));
But the latest version of the driver (4.14.1) does not support WhiteListPolicy and I'm wondering what's the best way to achieve this. Please note that I want to do this only for development purposes.