public interface MessageListener extends EventListener
NetworkManager
with corresponding to the appropriate message type
i.g. For adding the listener, use NetworkManager.addMessageListener(MessageListener)}
and for removing the listener, use NetworkManager.removeMessageListener(MessageListener)| Modifier and Type | Method and Description |
|---|---|
int |
getType()
Returns the message type which
Message is supporting
i.g. |
void |
receiveMessageEvent(MessageEvent event)
Processing a
MessageEvent |
void receiveMessageEvent(MessageEvent event) throws MessageIOException
MessageEventevent - a received message eventMessageIOException - if I/O error occursint getType()
Message is supporting
i.g. Message.TYPE_CLUSTER_MANAGER_MESSAGE or Message.TYPE_HEALTH_MONITOR_MESSAGE's integer value or etc...Copyright © 2017–2019 Eclipse Foundation. All rights reserved.