|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@PublicApi public interface ClusterLock
Represents a cluster-wide lock.
These are named locks available from com.atlassian.beehive.ClusterLockService.
Lock| Method Summary | |
|---|---|
boolean |
isHeldByCurrentThread()
Queries if this lock is held by the current thread. |
Condition |
newCondition()
This optional operation from the java Lock interface is not supported in ClusterLock. |
| Methods inherited from interface java.util.concurrent.locks.Lock |
|---|
lock, lockInterruptibly, tryLock, tryLock, unlock |
| Method Detail |
|---|
boolean isHeldByCurrentThread()
This is equivalent to Thread.holdsLock(Object) for Java's intrinsic
monitor locks or ReentrantLock.isHeldByCurrentThread().
true if the current thread holds this lock; false otherwise@Nonnull Condition newCondition()
Lock interface is not supported in ClusterLock.
newCondition in interface LockUnsupportedOperationException - always
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||