class HappyEyeballsResolver implements SocketAddressResolver {

    @Override
    public void resolve(String host, int port, Promise<List<InetSocketAddress>> promise) {
        final Optional<String> literalIpAddress = isLiteralIpAddress(host);
        if (literalIpAddress.isPresent()) {
            completePromise(literalIpAddress.get(), port, promise);
        } else {
            resolveAsynchronously(host, port, promise);
        }
    }

    public  HappyEyeballsResolver(HttpClient httpClient);

}