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

registerCheck

open fun registerCheck(checkOptions: CheckOptions, resultHandler: Handler<AsyncResult<Void>>): ConsulClient

Add a new check to the local agent. The agent is responsible for managing the status of the check and keeping the Catalog in sync.

Parameters

checkOptions - options used to register new check

resultHandler - will be called when complete

Return
reference to this, for fluency