public class EmuEventNotify
extends java.lang.Object
| Constructor and Description | 
|---|
| EmuEventNotify()Constructor with default wait time of 1 seconds. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | endWait()This method allows the waitForEvent() method to return immediately. | 
| void | reset()This method enables reuse of this object. | 
| void | waitForEvent()This method waits indefinitely for the endWait() method to be called before it returns. | 
| boolean | waitForEvent(long timeout,
            java.util.concurrent.TimeUnit unit)This method waits for the endWait() method to be called
 or for the timeout to expire before it returns. | 
public EmuEventNotify()
public void reset()
public void endWait()
public void waitForEvent()
                  throws java.lang.InterruptedException
java.lang.InterruptedException - if interrupted during waitpublic boolean waitForEvent(long timeout,
                            java.util.concurrent.TimeUnit unit)
                     throws java.lang.InterruptedException
timeout - the maximum time to waitunit - the time unit of the timeout argumenttrue if endWait() called and false
         if the waiting time elapsed before endWait() calledjava.lang.InterruptedException - if interrupted during wait