com.hivemq.spi.callback.cluster.ClusterNodeAddress Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hivemq-spi Show documentation
Show all versions of hivemq-spi Show documentation
The Service Provider Interfaces for developing HiveMQ plugins.
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;
}
}