|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.util.AcquisitionPolicy
public abstract class AcquisitionPolicy
Policy for acquiring Lock
s
Field Summary | |
---|---|
static AcquisitionPolicy |
IMMEDIATE
Attempts to acquire the lock immediately. |
static AcquisitionPolicy |
WAIT
Waits until the Lock has been acquired |
Method Summary | |
---|---|
abstract boolean |
acquire(java.util.concurrent.locks.Lock lock)
Acquires the lock according to the implementation requirements |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final AcquisitionPolicy IMMEDIATE
public static final AcquisitionPolicy WAIT
Lock
has been acquired
Method Detail |
---|
public abstract boolean acquire(@NotNull java.util.concurrent.locks.Lock lock)
lock
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |