vertx / io.vertx.reactivex.ext.consul / ConsulClient / registerService

registerService

open fun registerService(serviceOptions: ServiceOptions, resultHandler: Handler<AsyncResult<Void>>): ConsulClient

Adds a new service, with an optional health check, to the local agent.

Parameters

serviceOptions - the options of new service

resultHandler - will be called when complete

Return
reference to this, for fluency