com.genesyslab.platform.commons.protocol
Interface MessageHandler
- All Superinterfaces:
- Listener
- All Known Implementing Classes:
- AbstractClusterChannel.IntMessageHandler, EventReceivingBrokerService
public interface MessageHandler
- extends Listener
Interface for direct incoming messages delivery to user code.
Example:
TServerProtocol protocol = new TServerProtocol(...);
protocol.setMessageHandler(new MessageHandler() {
public void onMessage(final Message message) {
System.out.println("Received: " + message);
}
});
...
protocol.open();
...
User logic should not take a lot of time - the channel async invoker
will be used for this task execution, so, other channel events will be postponed
in case of delay here.
- See Also:
DuplexChannel.setMessageHandler(MessageHandler)
,
AbstractChannel.setInvoker(AsyncInvoker)
Method Summary |
void |
onMessage(Message message)
Method for handling of channels' incoming messages. |
onMessage
void onMessage(Message message)
- Method for handling of channels' incoming messages.
- Parameters:
message
- incoming message
Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 8.5.302.00
Copyright © 2006–2017 Genesys Telecommunications Laboratories, Inc. All rights reserved.