vertx / io.vertx.rxjava.ext.consul / ConsulClient / leaderStatus

leaderStatus

open fun leaderStatus(resultHandler: Handler<AsyncResult<String>>): ConsulClient

Get the Raft leader for the datacenter in which the agent is running. It returns an address in format "10.1.10.12:8300"

Parameters

resultHandler - will be provided with address of cluster leader

Return
reference to this, for fluency