org.rosuda.JGR.toolkit
Class ConsoleSync
java.lang.Object
org.rosuda.JGR.toolkit.ConsoleSync
public class ConsoleSync
- extends Object
ConsoleSync - notifys when commands are in the queue and send them.
- Author:
- Markus Helbig/ Simon Urbanek
RoSuDa 2003 - 2005
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConsoleSync
public ConsoleSync()
waitForNotification
public String waitForNotification()
- this internal method waits until
triggerNotification(java.lang.String) is called
by another thread. It is implemented by using Object.wait() and checking
notificationArrived.
triggerNotification
public void triggerNotification(String msg)
- this methods awakens
waitForNotification(). It is implemented by
setting notificationArrived to true, setting
#lastNotificationMessage to the passed message and finally
calling Object.notifyAll().