Interface MessageListener
-
- All Superinterfaces:
java.util.EventListener
- All Known Implementing Classes:
ClusterManager,HealthMonitor,LWRMulticast,PingMessageListener,PongMessageListener
public interface MessageListener extends java.util.EventListenerMessage listener interface For receiving and processing inbound messages, this listener should be registered onNetworkManagerwith corresponding to the appropriate message type i.g. For adding the listener, useNetworkManager.addMessageListener(MessageListener)} and for removing the listener, useNetworkManager.removeMessageListener(MessageListener)- Author:
- Bongjae Chang
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetType()Returns the message type whichMessageis supporting i.g.voidreceiveMessageEvent(MessageEvent event)Processing aMessageEvent
-
-
-
Method Detail
-
receiveMessageEvent
void receiveMessageEvent(MessageEvent event) throws MessageIOException
Processing aMessageEvent- Parameters:
event- a received message event- Throws:
MessageIOException- if I/O error occurs
-
getType
int getType()
Returns the message type whichMessageis supporting i.g.Message.TYPE_CLUSTER_MANAGER_MESSAGEorMessage.TYPE_HEALTH_MONITOR_MESSAGE's integer value or etc...- Returns:
- the message type about which this listener is concerned
-
-