Class ClusterNodeAddress


  • public class ClusterNodeAddress
    extends Object
    Represents a cluster node's address.
    Since:
    4.0.0, CE 2019.1
    • Constructor Detail

      • ClusterNodeAddress

        public ClusterNodeAddress​(@NotNull String host,
                                  int port)
        Create the nodes address for the cluster.
        Parameters:
        host - The hostname or IP address of the cluster node.
        port - The cluster bind-port of the cluster node.
        Throws:
        NullPointerException - If host is null.
        IllegalArgumentException - If port is not a valid port number (0-65535).
        Since:
        4.0.0, CE 2019.1
    • Method Detail

      • getHost

        public @NotNull String getHost()
        Returns:
        The host name.
        Since:
        4.0.0, CE 2019.1
      • getPort

        public int getPort()
        Returns:
        The port number.
        Since:
        4.0.0, CE 2019.1
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object