Listener
AbstractClusterChannel.IntMessageHandler
, EventReceivingBrokerService
public interface MessageHandler extends Listener
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.Modifier and Type | Method | Description |
---|---|---|
void |
onMessage(Message message) |
Method for handling of channels' incoming messages.
|
void onMessage(Message message)
message
- incoming messageSend comments on this topicTechpubs.webadmin@genesys.com.
Document version: 9.0.006.00
Copyright © 2006–2019 Genesys Telecommunications Laboratories, Inc. All rights reserved.