org.apache.batik.util

Class RunnableQueue.LockableLink

protected static class RunnableQueue.LockableLink extends RunnableQueue.Link

To store a Runnable with an object waiting for him to be executed.
Constructor Summary
LockableLink(Runnable r)
Creates a new link.
Method Summary
booleanisLocked()
Whether the link is actually locked.
voidlock()
Locks this link.
voidunlock()
unlocks this link.

Constructor Detail

LockableLink

public LockableLink(Runnable r)
Creates a new link.

Method Detail

isLocked

public boolean isLocked()
Whether the link is actually locked.

lock

public void lock()
Locks this link.

unlock

public void unlock()
unlocks this link.
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.