Class FailoverDnsSrvConnectionUrl

java.lang.Object
com.mysql.cj.conf.ConnectionUrl
com.mysql.cj.conf.url.FailoverDnsSrvConnectionUrl
All Implemented Interfaces:
DatabaseUrlContainer

public class FailoverDnsSrvConnectionUrl
extends ConnectionUrl
  • Constructor Details

  • Method Details

    • getDefaultHost

      public java.lang.String getDefaultHost()
      Description copied from class: ConnectionUrl
      Returns the default host. Subclasses must override this method if they have different default host value.
      Overrides:
      getDefaultHost in class ConnectionUrl
      Returns:
      the default host
    • getDefaultPort

      public int getDefaultPort()
      Description copied from class: ConnectionUrl
      Returns the default port. Subclasses must override this method if they have different default port value.
      Overrides:
      getDefaultPort in class ConnectionUrl
      Returns:
      the default port
    • getHostsList

      public java.util.List<HostInfo> getHostsList​(HostsListView view)
      Returns a hosts list built from the result of the DNS SRV lookup for the original host name.
      Overrides:
      getHostsList in class ConnectionUrl
      Parameters:
      view - the type of the view to use in the returned list of hosts. This argument is ignored in this implementation.
      Returns:
      the hosts list from the result of the DNS SRV lookup, filtered for the given view.