Package com.mongodb.event
Class ClusterListenerAdapter
- java.lang.Object
-
- com.mongodb.event.ClusterListenerAdapter
-
- All Implemented Interfaces:
ClusterListener
,java.util.EventListener
@Deprecated(since="2021-05-27") public abstract class ClusterListenerAdapter extends java.lang.Object implements ClusterListener
Deprecated.Usage of this API is not supported in AEM as a Cloud Service.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()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
clusterClosed(ClusterClosedEvent event)
Deprecated.Invoked when a cluster is closed.void
clusterDescriptionChanged(ClusterDescriptionChangedEvent event)
Deprecated.Invoked when a cluster description changes.void
clusterOpening(ClusterOpeningEvent event)
Deprecated.Invoked when a cluster is opened.
-
-
-
Method Detail
-
clusterOpening
public void clusterOpening(ClusterOpeningEvent event)
Deprecated.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)
Deprecated.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)
Deprecated.Description copied from interface:ClusterListener
Invoked when a cluster description changes.- Specified by:
clusterDescriptionChanged
in interfaceClusterListener
- Parameters:
event
- the event
-
-