Package com.mongodb.event
Class ClusterEventMulticaster
- java.lang.Object
 - 
- com.mongodb.event.ClusterEventMulticaster
 
 
- 
- All Implemented Interfaces:
 ClusterListener,java.util.EventListener
@Deprecated @Immutable public final class ClusterEventMulticaster extends java.lang.Object implements ClusterListener
Deprecated.register multiple cluster listeners insteadA multicaster for cluster events.- Since:
 - 3.3
 
 
- 
- 
Constructor Summary
Constructors Constructor Description ClusterEventMulticaster(java.util.List<ClusterListener> clusterListeners)Deprecated.Construct an instance with the given list of cluster listeners 
- 
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidclusterClosed(ClusterClosedEvent event)Deprecated.Invoked when a cluster is closed.voidclusterDescriptionChanged(ClusterDescriptionChangedEvent event)Deprecated.Invoked when a cluster description changes.voidclusterOpening(ClusterOpeningEvent event)Deprecated.Invoked when a cluster is opened.java.util.List<ClusterListener>getClusterListeners()Deprecated.Gets the cluster listeners. 
 - 
 
- 
- 
Constructor Detail
- 
ClusterEventMulticaster
public ClusterEventMulticaster(java.util.List<ClusterListener> clusterListeners)
Deprecated.Construct an instance with the given list of cluster listeners- Parameters:
 clusterListeners- the non-null list of cluster listeners, none of which may be null
 
 - 
 
- 
Method Detail
- 
getClusterListeners
public java.util.List<ClusterListener> getClusterListeners()
Deprecated.Gets the cluster listeners.- Returns:
 - the cluster listeners
 
 
- 
clusterOpening
public void clusterOpening(ClusterOpeningEvent event)
Deprecated.Description copied from interface:ClusterListenerInvoked when a cluster is opened.- Specified by:
 clusterOpeningin interfaceClusterListener- Parameters:
 event- the event
 
- 
clusterClosed
public void clusterClosed(ClusterClosedEvent event)
Deprecated.Description copied from interface:ClusterListenerInvoked when a cluster is closed.- Specified by:
 clusterClosedin interfaceClusterListener- Parameters:
 event- the event
 
- 
clusterDescriptionChanged
public void clusterDescriptionChanged(ClusterDescriptionChangedEvent event)
Deprecated.Description copied from interface:ClusterListenerInvoked when a cluster description changes.- Specified by:
 clusterDescriptionChangedin interfaceClusterListener- Parameters:
 event- the event
 
 - 
 
 -