Class DelegateLock
java.lang.Object
java.util.concurrent.locks.ReentrantLock
com.fastasyncworldedit.bukkit.adapter.ReentrantLockWithGetOwner
com.fastasyncworldedit.bukkit.adapter.DelegateLock
- All Implemented Interfaces:
Serializable,Lock
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintgetWaitQueueLength(Condition condition) booleanhasWaiters(Condition condition) booleanbooleanisLocked()booleanvoidlock()voidvoidsetModified(boolean modified) toString()booleantryLock()booleanvoidunlock()voidMethods inherited from class com.fastasyncworldedit.bukkit.adapter.ReentrantLockWithGetOwner
getOwnerMethods inherited from class java.util.concurrent.locks.ReentrantLock
getQueuedThreads, getQueueLength, getWaitingThreads, hasQueuedThread, hasQueuedThreads, isFair
-
Constructor Details
-
DelegateLock
-
-
Method Details
-
isModified
public boolean isModified() -
setModified
public void setModified(boolean modified) -
lock
public void lock()- Specified by:
lockin interfaceLock- Overrides:
lockin classReentrantLock
-
lockInterruptibly
- Specified by:
lockInterruptiblyin interfaceLock- Overrides:
lockInterruptiblyin classReentrantLock- Throws:
InterruptedException
-
tryLock
public boolean tryLock()- Specified by:
tryLockin interfaceLock- Overrides:
tryLockin classReentrantLock
-
tryLock
- Specified by:
tryLockin interfaceLock- Overrides:
tryLockin classReentrantLock- Throws:
InterruptedException
-
unlock
public void unlock()- Specified by:
unlockin interfaceLock- Overrides:
unlockin classReentrantLock
-
getParent
-
newCondition
- Specified by:
newConditionin interfaceLock- Overrides:
newConditionin classReentrantLock
-
getHoldCount
public int getHoldCount()- Overrides:
getHoldCountin classReentrantLock
-
isHeldByCurrentThread
public boolean isHeldByCurrentThread()- Overrides:
isHeldByCurrentThreadin classReentrantLock
-
isLocked
public boolean isLocked()- Overrides:
isLockedin classReentrantLock
-
untilFree
public void untilFree() -
hasWaiters
- Overrides:
hasWaitersin classReentrantLock
-
getWaitQueueLength
- Overrides:
getWaitQueueLengthin classReentrantLock
-
toString
- Overrides:
toStringin classReentrantLock
-