* @param hostDiscovery the host discovery instance to use in the built {@link ServicePool}
* @return this
*/
public ServicePoolBuilder<S> withHostDiscovery(final HostDiscovery hostDiscovery) {
checkNotNull(hostDiscovery);
HostDiscoverySource hostDiscoverySource = new HostDiscoverySource() {
@Override
public HostDiscovery forService(String serviceName) {
return hostDiscovery;
}
};