Package com.mongodb.event
Class ClusterEventMulticaster
java.lang.Object
com.mongodb.event.ClusterEventMulticaster
- All Implemented Interfaces:
ClusterListener,EventListener
@Deprecated
@Immutable
public final class ClusterEventMulticaster
extends Object
implements ClusterListener
Deprecated.
register multiple cluster listeners instead
A multicaster for cluster events.
- Since:
- 3.3
-
Constructor Summary
ConstructorsConstructorDescriptionClusterEventMulticaster(List<ClusterListener> clusterListeners) Deprecated.Construct an instance with the given list of cluster listeners -
Method Summary
Modifier and TypeMethodDescriptionvoidclusterClosed(ClusterClosedEvent event) Deprecated.Invoked when a cluster is closed.voidDeprecated.Invoked when a cluster description changes.voidDeprecated.Invoked when a cluster is opened.Deprecated.Gets the cluster listeners.
-
Constructor Details
-
ClusterEventMulticaster
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 Details
-
getClusterListeners
Deprecated.Gets the cluster listeners.- Returns:
- the cluster listeners
-
clusterOpening
Deprecated.Description copied from interface:ClusterListenerInvoked when a cluster is opened.- Specified by:
clusterOpeningin interfaceClusterListener- Parameters:
event- the event
-
clusterClosed
Deprecated.Description copied from interface:ClusterListenerInvoked when a cluster is closed.- Specified by:
clusterClosedin interfaceClusterListener- Parameters:
event- the event
-
clusterDescriptionChanged
Deprecated.Description copied from interface:ClusterListenerInvoked when a cluster description changes.- Specified by:
clusterDescriptionChangedin interfaceClusterListener- Parameters:
event- the event
-