|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.rosuda.JGR.toolkit.ConsoleSync
public class ConsoleSync
ConsoleSync - notifys when commands are in the queue and send them.
| Constructor Summary | |
|---|---|
ConsoleSync()
|
|
| Method Summary | |
|---|---|
void |
triggerNotification(java.lang.String msg)
this methods awakens waitForNotification(). |
java.lang.String |
waitForNotification()
this internal method waits until triggerNotification(java.lang.String) is called
by another thread. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConsoleSync()
| Method Detail |
|---|
public java.lang.String waitForNotification()
triggerNotification(java.lang.String) is called
by another thread. It is implemented by using Object.wait() and checking
notificationArrived.
public void triggerNotification(java.lang.String msg)
waitForNotification(). It is implemented by
setting notificationArrived to true, setting
#lastNotificationMessage to the passed message and finally
calling Object.notifyAll().
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||