All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hivemq.spi.callback.cluster.ClusterNodeAddress Maven / Gradle / Ivy

There is a newer version: 3.4.4
Show newest version
package com.hivemq.spi.callback.cluster;

import com.hivemq.spi.annotations.Immutable;

/**
 * Represents a cluster node's address
 *
 * @author Christoph Schäbel
 * @since 3.1
 */
@Immutable
public class ClusterNodeAddress {

    private final String host;
    private final int port;

    /**
     * @param host the hostname or IP of the cluster node
     * @param port the cluster bind-port of the cluster node
     */
    public ClusterNodeAddress(final String host, final int port) {
        this.host = host;
        this.port = port;
    }

    public String getHost() {
        return host;
    }

    public int getPort() {
        return port;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy