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
-
Method Summary
Modifier and TypeMethodDescriptionint
int
getWaitQueueLength
(Condition condition) boolean
hasWaiters
(Condition condition) boolean
boolean
isLocked()
boolean
void
lock()
void
void
setModified
(boolean modified) toString()
boolean
tryLock()
boolean
void
unlock()
void
Methods inherited from class com.fastasyncworldedit.bukkit.adapter.ReentrantLockWithGetOwner
getOwner
Methods 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:
lock
in interfaceLock
- Overrides:
lock
in classReentrantLock
-
lockInterruptibly
- Specified by:
lockInterruptibly
in interfaceLock
- Overrides:
lockInterruptibly
in classReentrantLock
- Throws:
InterruptedException
-
tryLock
public boolean tryLock()- Specified by:
tryLock
in interfaceLock
- Overrides:
tryLock
in classReentrantLock
-
tryLock
- Specified by:
tryLock
in interfaceLock
- Overrides:
tryLock
in classReentrantLock
- Throws:
InterruptedException
-
unlock
public void unlock()- Specified by:
unlock
in interfaceLock
- Overrides:
unlock
in classReentrantLock
-
getParent
-
newCondition
- Specified by:
newCondition
in interfaceLock
- Overrides:
newCondition
in classReentrantLock
-
getHoldCount
public int getHoldCount()- Overrides:
getHoldCount
in classReentrantLock
-
isHeldByCurrentThread
public boolean isHeldByCurrentThread()- Overrides:
isHeldByCurrentThread
in classReentrantLock
-
isLocked
public boolean isLocked()- Overrides:
isLocked
in classReentrantLock
-
untilFree
public void untilFree() -
hasWaiters
- Overrides:
hasWaiters
in classReentrantLock
-
getWaitQueueLength
- Overrides:
getWaitQueueLength
in classReentrantLock
-
toString
- Overrides:
toString
in classReentrantLock
-