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 void
clusterClosed(ClusterClosedEvent event)
Invoked when a cluster is closed.void
clusterDescriptionChanged(ClusterDescriptionChangedEvent event)
Invoked when a cluster description changes.void
clusterOpening(ClusterOpeningEvent event)
Invoked when a cluster is opened.
-
-
-
Method Detail
-
clusterOpening
public void clusterOpening(ClusterOpeningEvent event)
Description copied from interface:ClusterListener
Invoked when a cluster is opened.- Specified by:
clusterOpening
in interfaceClusterListener
- Parameters:
event
- the event
-
clusterClosed
public void clusterClosed(ClusterClosedEvent event)
Description copied from interface:ClusterListener
Invoked when a cluster is closed.- Specified by:
clusterClosed
in interfaceClusterListener
- Parameters:
event
- the event
-
clusterDescriptionChanged
public void clusterDescriptionChanged(ClusterDescriptionChangedEvent event)
Description copied from interface:ClusterListener
Invoked when a cluster description changes.- Specified by:
clusterDescriptionChanged
in interfaceClusterListener
- Parameters:
event
- the event
-
-