| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.fhg.igd.util.Signals
public class Signals
This is a convenience class for writing objects that block on signals such as closing a window. It defines a map of named objects on which threads may block until they receive notification.
| Field Summary | |
|---|---|
private  Map | 
signals_
This map holds the named objects.  | 
| Constructor Summary | |
|---|---|
Signals()
Creates an instance of this class.  | 
|
| Method Summary | |
|---|---|
 void | 
sendSignal(String name)
This method signals all threads waiting on the signal with the given name.  | 
 void | 
waitForSignal(String name)
This method blocks the calling thread until the signal is sent by another thread or an interrupt occurs.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
private Map signals_
| Constructor Detail | 
|---|
public Signals()
| Method Detail | 
|---|
public void waitForSignal(String name)
sig - The name of the signal to wait for.public void sendSignal(String name)
name - The name of the signal.
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||