Package org.wildfly.common.lock
Interface ExtendedLock
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisFair()Query if this lock instance tends to be "fair".booleanisHeldByCurrentThread()Determine if this lock is held by the current thread.booleanisLocked()Determine if this lock is held.-
Methods inherited from interface java.util.concurrent.locks.Lock
lock, lockInterruptibly, newCondition, tryLock, tryLock, unlock
-
-
-
-
Method Detail
-
isLocked
boolean isLocked()
Determine if this lock is held.- Returns:
trueif this lock is held,falseotherwise
-
isHeldByCurrentThread
boolean isHeldByCurrentThread()
Determine if this lock is held by the current thread.- Returns:
trueif this lock is held by the current thread,falseotherwise
-
isFair
boolean isFair()
Query if this lock instance tends to be "fair".- Returns:
trueif the lock instance tends towards fairness,falseotherwise
-
-