protected static class RunnableQueue.LockableLink extends RunnableQueue.Link
| Constructor and Description |
|---|
RunnableQueue.LockableLink(java.lang.Runnable r)
Creates a new link.
|
| Modifier and Type | Method and 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 RunnableQueue.LockableLink(java.lang.Runnable r)
public boolean isLocked()
public void lock()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void unlock()
unlock in class RunnableQueue.LinkCopyright ? 2009 Apache Software Foundation. All Rights Reserved.