protected static class RunnableQueue.LockableLink extends RunnableQueue.Link
Constructor and Description |
---|
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, unlink
public boolean isLocked()
public void lock() throws java.lang.InterruptedException
java.lang.InterruptedException
public void unlock()
unlock
in class RunnableQueue.Link
Copyright © 2022 Apache Software Foundation. All Rights Reserved.