|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.doolin.bus.support.DefaultBus
public class DefaultBus
| Constructor Summary | |
|---|---|
DefaultBus()
|
|
| 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 |
|
protected
|
messageAccepted(M message,
Subscriber<M> subscriber)
|
|
protected void |
messageReceived(Object message)
|
|
protected
|
process(M message)
Processes one message |
|
protected void |
processContinue()
Continue the processing |
|
void |
publish(Object message)
Pushes the message on the queue. |
|
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. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultBus()
| Method Detail |
|---|
public BusLog getLog()
IBus
getLog in interface IBuspublic void setLog(BusLog log)
IBus
setLog in interface IBuspublic void publish(Object message)
publish in interface IBusmessage - Message which is published.protected void processContinue()
public <M> void subscribe(Subscriber<M> subscriber)
IBus
subscribe in interface IBusM - Type of messagesubscriber - Details of the subscription.public <M> void unsubscribe(Subscriber<M> subscriber)
IBus
unsubscribe in interface IBusM - Type of messagesubscriber - Details of the subscription.protected <M> void process(M message)
message - Message to process
protected <M> void messageAccepted(M message,
Subscriber<M> subscriber)
protected void messageReceived(Object message)
public void clear()
IBus
clear in interface IBuspublic IBusInfo getBusInfo()
IBus
getBusInfo in interface IBus
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||