|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
CB2 Broadcast Messaging clients (the BCM terminals) implement this interface and register within the application context under specific BCM channel names to receive broadcast messages.
ApplicationContext.registerBCMTerminal(java.lang.String, com.boylesoftware.cb2.BroadcastMessagingTerminal)| Method Summary | |
void |
processMessage(java.lang.String channelName,
java.lang.String source,
java.io.Serializable messageParam)
This method gets called when a message is received. |
| Method Detail |
public void processMessage(java.lang.String channelName,
java.lang.String source,
java.io.Serializable messageParam)
throws ApplicationException
The method should be written thread-safe, because the framework may let multiple threads into this method at the same time.
channelName - name of the BCM channel, on which the message was
received.source - a string, which identifies in a specific to the BCM
provider implementation way the JVM that sent the message.messageParam - optional general purpose parameter sent along with
the message, may be null.
ApplicationException - if the was a serious error during the
message processing. This exception goes directly to the BCM provider,
which called application context's processBCMMessage
method to deliver the message to the terminal.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||