Interface IClusterMessageObserver
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
ClusterMessageObserver
public interface IClusterMessageObserver extends Serializable
An observer that can be used to listen for messages exchanged by nodes in the cluster.- Since:
- 3.1.0
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addListener(IClusterMessageListener listener)
Adds a listener that will be invoked when an event related to messages between nodes occurs.void
receiveMessage(NodeMessageEvent event)
Method that should be called when a message sent by a node was received.void
removeListener(IClusterMessageListener listener)
Removes a listener previously added viaaddListener(IClusterMessageListener)
.
-
-
-
Method Detail
-
receiveMessage
void receiveMessage(NodeMessageEvent event)
Method that should be called when a message sent by a node was received. This method should invoke the appropriate listeners added viaaddListener(IClusterMessageListener)
.- Parameters:
event
- Event with details about the received message.
-
addListener
void addListener(IClusterMessageListener listener)
Adds a listener that will be invoked when an event related to messages between nodes occurs.- Parameters:
listener
- Listener to add that will be invoked when an event occurs.
-
removeListener
void removeListener(IClusterMessageListener listener)
Removes a listener previously added viaaddListener(IClusterMessageListener)
.- Parameters:
listener
- Listener that should not be invoked anymore.
-
-