Interface IClusterTopologyObserver
- 
- All Superinterfaces:
 Serializable
- All Known Implementing Classes:
 ClusterTopologyObserver
public interface IClusterTopologyObserver extends Serializable
An observer that can be used to listen for changes to the cluster topology (e.g. when a node is added or removed from the cluster).- Since:
 - 3.1.0
 - Author:
 - XIMA MEDIA GmbH
 
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description voidaddListener(IClusterTopologyListener listener)Adds a listener that will be invoked when an event related to a change in the cluster topology occurs.default voidonNodeCrashSuspect(NodeCrashSuspectedEvent event)Deprecated.This event is not supported anymore.voidonNodeJoined(NodeJoinEvent event)Method that should be called when a node was added to the cluster.voidonNodeLeft(NodeLeftEvent event)Method that should be called when a node was removed from the cluster.voidremoveListener(IClusterTopologyListener listener)Removes a listener previously added viaaddListener(IClusterTopologyListener). 
 - 
 
- 
- 
Method Detail
- 
onNodeJoined
void onNodeJoined(NodeJoinEvent event)
Method that should be called when a node was added to the cluster. This method should invoke the appropriate listeners added viaaddListener(IClusterTopologyListener).- Parameters:
 event- Details about the node that joined the cluster.
 
- 
onNodeLeft
void onNodeLeft(NodeLeftEvent event)
Method that should be called when a node was removed from the cluster. This method should invoke the appropriate listeners added viaaddListener(IClusterTopologyListener).- Parameters:
 event- Details about the node that left the cluster.
 
- 
onNodeCrashSuspect
@Deprecated default void onNodeCrashSuspect(NodeCrashSuspectedEvent event)
Deprecated.This event is not supported anymore. There is no replacement.Method that should be called when the connection to a node may have been lost. This method should invoke the appropriate listeners added viaaddListener(IClusterTopologyListener).- Parameters:
 event- Details about the node that is suspected to have lost the connection to the cluster.
 
- 
addListener
void addListener(IClusterTopologyListener listener)
Adds a listener that will be invoked when an event related to a change in the cluster topology occurs.- Parameters:
 listener- Listener to add that will be invoked when an event occurs.
 
- 
removeListener
void removeListener(IClusterTopologyListener listener)
Removes a listener previously added viaaddListener(IClusterTopologyListener).- Parameters:
 listener- Listener that should not be invoked anymore.
 
 - 
 
 -