|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IBus
Defines a bus that will handle the messages synchronously.
| Method Summary | ||
|---|---|---|
void |
clear()
Clears all subscriptions from the bus, use with care! |
|
IBusInfo |
getBusInfo()
Gets information about the bus |
|
BusLog |
getLog()
Gets the log associated with this bus |
|
void |
publish(Object message)
Publishes a message on this bus and waits for all subscribers to have completed the treatment of this message. |
|
void |
setLog(BusLog log)
Sets the log associated with this bus |
|
|
subscribe(Subscriber<M> subscriber)
Subscribes to this bus. |
|
|
unsubscribe(Subscriber<M> subscriber)
Unsubscribes to this bus. |
|
| Method Detail |
|---|
void publish(Object message)
message - Message which is published.<M> void subscribe(Subscriber<M> subscriber)
M - Type of messagesubscriber - Details of the subscription.<M> void unsubscribe(Subscriber<M> subscriber)
M - Type of messagesubscriber - Details of the subscription.void clear()
IBusInfo getBusInfo()
BusLog getLog()
void setLog(BusLog log)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||