ClusterLockService for locking which returns instances
of Lock@Deprecated public interface Lock
LockAdapter can wrap an instance of this class to provide the full java.util.concurrent interface.
LockOperation,
LockAdapter| Modifier and Type | Method and Description |
|---|---|
void |
lock()
Deprecated.
Acquire a lock - blocks until lock is successfully acquired
|
boolean |
tryLock()
Deprecated.
Try to obtain a lock - returns immediately
|
void |
unlock()
Deprecated.
Unlock this lock
|
boolean tryLock()
void unlock()
void lock()
Copyright © 2003–2017 Atlassian. All rights reserved.