Package org.apache.batik.util
Class RunnableQueue.LockableLink
- java.lang.Object
-
- org.apache.batik.util.DoublyLinkedList.Node
-
- org.apache.batik.util.RunnableQueue.Link
-
- org.apache.batik.util.RunnableQueue.LockableLink
-
- Enclosing class:
- RunnableQueue
protected static class RunnableQueue.LockableLink extends RunnableQueue.Link
To store a Runnable with an object waiting for him to be executed.
-
-
Constructor Summary
Constructors Constructor Description LockableLink(java.lang.Runnable r)
Creates a new link.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isLocked()
Whether the link is actually locked.void
lock()
Locks this link.void
unlock()
unlocks this link.-
Methods inherited from class org.apache.batik.util.DoublyLinkedList.Node
getNext, getPrev, insertBefore, setNext, setPrev, unlink
-
-
-
-
Method Detail
-
isLocked
public boolean isLocked()
Whether the link is actually locked.
-
lock
public void lock() throws java.lang.InterruptedException
Locks this link.- Throws:
java.lang.InterruptedException
-
unlock
public void unlock()
unlocks this link.- Overrides:
unlock
in classRunnableQueue.Link
-
-