protected static class RunnableQueue.LockableLink extends RunnableQueue.Link
Constructor and Description |
---|
LockableLink(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 LockableLink(Runnable r)
public boolean isLocked()
public void lock() throws InterruptedException
InterruptedException
public void unlock()
unlock
in class RunnableQueue.Link
Copyright © 2000–2023 Apache Software Foundation. All rights reserved.