| java.lang.Object com.sun.pdfview.Flag
Flag | public class Flag (Code) | | A generic synchronized flag, because Java doesn't have one.
|
Method Summary | |
public synchronized void | clear() Clears the flag. | public synchronized void | interruptibleWaitForFlag() Waits for the flag to be set, if it is not set already. | public synchronized void | set() Sets the flag. | public synchronized void | waitForFlag() Waits for the flag to be set, if it is not set already. |
clear | public synchronized void clear()(Code) | | Clears the flag. Do this before calling waitForFlag.
|
interruptibleWaitForFlag | public synchronized void interruptibleWaitForFlag() throws InterruptedException(Code) | | Waits for the flag to be set, if it is not set already.
|
set | public synchronized void set()(Code) | | Sets the flag. Any pending waitForFlag calls will now return.
|
waitForFlag | public synchronized void waitForFlag()(Code) | | Waits for the flag to be set, if it is not set already.
This method catches InterruptedExceptions, so if you want
notification of interruptions, use interruptibleWaitForFlag
instead.
|
|
|