return map;
}
@Override
public void getLockWithTimeout(String name, long timeout, Handler<AsyncResult<Lock>> resultHandler) {
AsynchronousLock lock = new AsynchronousLock(vertx);
AsynchronousLock prev = locks.putIfAbsent(name, lock);
if (prev != null) {
lock = prev;
}
lock.acquire(timeout, resultHandler);
}