类 FailoverDnsSrvConnectionUrl

    • 构造器详细资料

      • FailoverDnsSrvConnectionUrl

        public FailoverDnsSrvConnectionUrl​(ConnectionUrlParser connStrParser,
                                           Properties info)
        Constructs an instance of FailoverDnsSrvConnectionUrl, performing all the required initializations.
        参数:
        connStrParser - a ConnectionUrlParser instance containing the parsed version of the original connection string
        info - the connection arguments map
    • 方法详细资料

      • getDefaultHost

        public String getDefaultHost()
        从类复制的说明: ConnectionUrl
        Returns the default host. Subclasses must override this method if they have different default host value.
        覆盖:
        getDefaultHost 在类中 ConnectionUrl
        返回:
        the default host
      • getDefaultPort

        public int getDefaultPort()
        从类复制的说明: ConnectionUrl
        Returns the default port. Subclasses must override this method if they have different default port value.
        覆盖:
        getDefaultPort 在类中 ConnectionUrl
        返回:
        the default port
      • getHostsList

        public List<HostInfo> getHostsList​(HostsListView view)
        Returns a hosts list built from the result of the DNS SRV lookup for the original host name.
        覆盖:
        getHostsList 在类中 ConnectionUrl
        参数:
        view - the type of the view to use in the returned list of hosts. This argument is ignored in this implementation.
        返回:
        the hosts list from the result of the DNS SRV lookup, filtered for the given view.