|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.doolin.bus.support.DefaultBusLog
public class DefaultBusLog
Logs only the error messages.
| Constructor Summary | |
|---|---|
DefaultBusLog()
|
|
| Method Summary | ||
|---|---|---|
|
messageAccepted(M message,
Subscriber<M> subscriber)
This method is called when a message is about to be handled by a subscriber. |
|
void |
messageNoSubscription(Object message)
This method is called when no subscription was found to handle the message |
|
void |
messageReceived(Object message)
This method is called when a message is received by the bus. |
|
|
messageWithError(M message,
Subscriber<M> subscriber,
Exception ex)
This method is called when the processing of a message by a subscriber has resulted in an error. |
|
void |
registrationOk(Subscriber<?> subscriber)
This method is called when a subscriber is successfully registered. |
|
void |
unregistration(Subscriber<?> subscriber)
This method is called when a subscriber is unregistered. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultBusLog()
| Method Detail |
|---|
public <M> void messageAccepted(M message,
Subscriber<M> subscriber)
BusLog
messageAccepted in interface BusLogM - Type of the messagemessage - Received messagesubscriber - Subscriber about to handle the messagepublic void messageNoSubscription(Object message)
BusLog
messageNoSubscription in interface BusLogmessage - Received messagepublic void messageReceived(Object message)
BusLog
messageReceived in interface BusLogmessage - Received message
public <M> void messageWithError(M message,
Subscriber<M> subscriber,
Exception ex)
BusLog
messageWithError in interface BusLogM - Type of the messagemessage - Received messagesubscriber - Subscriber which handled the messageex - Resulting errorpublic void registrationOk(Subscriber<?> subscriber)
BusLog
registrationOk in interface BusLogsubscriber - Registered subscriber.public void unregistration(Subscriber<?> subscriber)
BusLog
unregistration in interface BusLogsubscriber - Unregistered subscriber.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||