vertx / io.vertx.core.shareddata / SharedData / getLock

getLock

abstract fun getLock(name: String, resultHandler: Handler<AsyncResult<Lock>>): Unit

Get a cluster wide lock with the specified name. The lock will be passed to the handler when it is available.

Parameters

name - the name of the lock

resultHandler - the handler