protected static class RunnableQueue.LockableLink extends RunnableQueue.Link
| Constructor | Description |
|---|---|
LockableLink(java.lang.Runnable r) |
Creates a new link.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
isLocked() |
Whether the link is actually locked.
|
void |
lock() |
Locks this link.
|
void |
unlock() |
unlocks this link.
|
getNext, getPrev, insertBefore, setNext, setPrev, unlinkpublic boolean isLocked()
public void lock()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void unlock()
unlock in class RunnableQueue.LinkCopyright ? 2018 Apache Software Foundation. All Rights Reserved.