Class HostInfo

    • Constructor Detail

      • HostInfo

        public HostInfo​(String host,
                        int port)
    • Method Detail

      • buildFromEndpoint

        public static HostInfo buildFromEndpoint​(String endPoint)
        Returns:
        a new HostInfo or null if endPoint is null or has no characters
        Throws:
        ConfigException - if the host or port cannot be parsed from the given endpoint string
      • unavailable

        public static HostInfo unavailable()
        Returns:
        a sentinel for cases where the host metadata is currently unavailable, eg during rebalance operations.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • port

        public int port()