public class LockUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static io.vertx.core.Future<Boolean> |
acquireLock(Lock lockImpl,
String lock,
String token,
long lockExpiryMs,
org.slf4j.Logger log)
Acquire a lock.
|
static void |
releaseLock(Lock lockImpl,
String lock,
String token,
org.slf4j.Logger log)
Release a lock.
|
public static io.vertx.core.Future<Boolean> acquireLock(Lock lockImpl, String lock, String token, long lockExpiryMs, org.slf4j.Logger log)
Boolean.TRUE when no lock implementation is providedlockImpl - the lock implementationlock - the locktoken - the unique tokenlockExpiryMs - the expiry of the locklog - the loggerFuture whether the lock could has been acquired or notCopyright © 2016–2020. All rights reserved.