|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sourceforge.jsrvany.test.Bus
This class is a bus for copying data to multiple objects
Copyright (c) 2000 Damian Fauth
Constructor Summary | |
Bus()
default constructor |
Method Summary | |
void |
pause()
signal to Threads using this bus that they must pause |
void |
registerBusListener(BusListener listener)
register a listener |
void |
unPause()
signal to Threads using this bus that they can continue |
void |
unRegisterBusListener(BusListener listener)
unregister a listener |
void |
write(BusListener listener,
java.lang.String data)
write to the bus |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public Bus()
Method Detail |
public void registerBusListener(BusListener listener)
listener
- is the class implementing BusListener that wishes to be notified about the latest data on the buspublic void unRegisterBusListener(BusListener listener)
listener
- is the class implementing BusListener that wishes to be removedpublic void write(BusListener listener, java.lang.String data)
data
- is the data being writtenpublic void pause()
public void unPause()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |