Package com.mongodb.event
Class ClusterListenerAdapter
- java.lang.Object
-
- com.mongodb.event.ClusterListenerAdapter
-
- All Implemented Interfaces:
ClusterListener,EventListener
public abstract class ClusterListenerAdapter extends Object implements ClusterListener
An adapter for cluster listener implementations, for clients that want to listen for a subset of cluster events. Extend this class to listen for cluster events and override the methods of interest.- Since:
- 3.3
-
-
Constructor Summary
Constructors Constructor Description ClusterListenerAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclusterClosed(ClusterClosedEvent event)Invoked when a cluster is closed.voidclusterDescriptionChanged(ClusterDescriptionChangedEvent event)Invoked when a cluster description changes.voidclusterOpening(ClusterOpeningEvent event)Invoked when a cluster is opened.
-
-
-
Method Detail
-
clusterOpening
public void clusterOpening(ClusterOpeningEvent event)
Description copied from interface:ClusterListenerInvoked when a cluster is opened.- Specified by:
clusterOpeningin interfaceClusterListener- Parameters:
event- the event
-
clusterClosed
public void clusterClosed(ClusterClosedEvent event)
Description copied from interface:ClusterListenerInvoked when a cluster is closed.- Specified by:
clusterClosedin interfaceClusterListener- Parameters:
event- the event
-
clusterDescriptionChanged
public void clusterDescriptionChanged(ClusterDescriptionChangedEvent event)
Description copied from interface:ClusterListenerInvoked when a cluster description changes.- Specified by:
clusterDescriptionChangedin interfaceClusterListener- Parameters:
event- the event
-
-