vertx / io.vertx.core / VertxOptions / setClusterPublicHost

setClusterPublicHost

open fun setClusterPublicHost(clusterPublicHost: String): VertxOptions

Set the public facing hostname to be used for clustering. Sometimes, e.g. when running on certain clouds, the local address the server listens on for clustering is not the same address that other nodes connect to it at, as the OS / cloud infrastructure does some kind of proxying. If this is the case you can specify a public hostname which is different from the hostname the server listens at. The default value is null which means use the same as the cluster hostname.

Parameters

clusterPublicHost - the public host name to use

Return
a reference to this, so the API can be used fluently